System and method for computer modeling of 3D objects or surfaces by mesh constructions having optimal quality characteristics and dynamic resolution capabilities

ABSTRACT

A system and method for the rapid creation of an optimized mesh model of a real world object, terrain or other three-dimensional surface. The mesh construction technique provides dynamic “up resolution/down resolution” mesh construction capabilities. The system inserts points into the mesh incrementally, ordering the points before each insertion so that dynamic resolution construction can be maintained. The point ordering process determines the distance each point has from the surface of a given mesh configuration such that the next point added will always be the point bringing the most significant detail to the mesh. This procedure of “optimal simplification” optimizes the mesh by guaranteeing the fewest number of points for the most detail at any given resolution. The present invention also provides a system and method to ensure an optimal quality of mesh at any level of insertion or deletion, following in an exemplary configuration a regularized systemized checking function to maintain a mesh of optimal quality such as by Delaunay triangulation principles. The system stores a history of the insertion and deletion steps in a compact list, which can be used for rapid removal of points or rapid regeneration of the mesh.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is related to co-pending United States Patent Application entitled “System and Method for Rapidly Generating an Optimal Mesh Model of a 3D Object or Surface” filed on even date herewith. The co-pending application is expressly incorporated herein by reference.

FIELD OF THE INVENTION

[0002] This invention relates to computer systems for three-dimensional (“3D”) modeling of real-world objects, terrains and other surfaces. In particular, this invention relates to computer systems which create optimized mesh models of objects and surfaces and have the capability to change dynamically the construction of the model to represent the object or surface in varying levels of detail.

BACKGROUND OF THE INVENTION

[0003] There is great interest in the development of computer systems which enable users to generate quickly accurate displays and reproductions of real world objects, terrains and other 3D surfaces. A graphic display and manipulation system generates a mesh model of the object, terrain or surface, uses that mesh model as a basis to create the display or reproduction and allows the user to manipulate the model to create other displays such as “morphs,” fantasy displays or special effects. A mesh model represents an object, terrain or other surface as a series of interconnected planar shapes, such as sets of triangles, quadrangles or more complex polygons. More advanced graphic display systems provide rapid zoom and “walk around” capabilities (allowing the viewer to make his or her perceived vantage point appear to move closer to, farther from or about an object or surface). The mesh modeling of these systems must be flexible and provide dynamic resolution capabilities as well as display a high quality reproduction of the object.

[0004] A set of data points that describes the object or surface provides basic data for the mesh. The data points represent actual, measured points on the object, surface or terrain. Their values come from a number of sources. A user can input data points based on measurement or planned architecture or they can be generated through scanning and other measuring systems. A scanning system uses a light source such as a laser stripe to scan and a camera to collect images of the scanning light as it reflects from the object. A scanning system processes the information captured in the images to determine a set of measured 3D point values that describe the object, surface or terrain in question. Scanning systems can easily gather the raw data of several hundred thousand 3D coordinates. The data points come to the mesh modeling system as a group of randomly distributed points. Other data concerning the object, terrain or surface, such as a texture map, ambient light data or color or luminosity information, can be associated or used in conjunction with the geometric shapes of the mesh.

[0005] Typical mesh modeling systems use data points either indirectly (in gridded network models) or directly (in irregular network models) to create meshes. U.S. Pat. No. 4,888,713 to Falk and U.S. Pat. No. 5,257,346 to Hanson describe ways of creating gridded mesh representations. Gridded network models superimpose a grid structure as the basic framework for the model surface. The grid point vertices form the interconnected geometric faces which model the surface. The computer connects the grid points to form evenly distributed, geometric shapes such as triangles or squares, that fit within the overall grid structure. While gridded models provide regular, predictable structures, they are not well suited for mesh construction based on an irregular, random set of data points, such as those generated through laser scanning (as mentioned above). To fit the irregular data points of a laser scan into a rigid grid structure, the data point values must be interpolated to approximate points at the grid point locations. The need to interpolate increases computation time and decreases the overall accuracy of the model.

[0006] Compared to a gridded model, an irregular mesh model provides a better framework for using irregular data points, because the irregularly-spaced data points themselves can be used as the vertices in the framework, without the need to interpolate their values to preset grid point locations. A typical irregular network meshing system builds a mesh by constructing edge lines between data points to create the set of geometric faces that approximate the surface of the object or terrain. There has been widespread interest in building irregular mesh models having planar faces of triangular shapes, as only three points are needed to determine a planar face.

[0007] While irregular triangular meshes offer the possibility of more accurate displays, the systems to implement them are more complex compared to gridded network models. The limitations of the computer hardware and the complexity inherent in the data structures needed for implementation of irregular mesh building systems has prevented their widespread use. U.S. Pat. No. 5,440,674 to Park and U.S. Pat. No. 5,214,752 to Meshkat et al. describe meshing systems used for finite element analysis, i.e., the partitioning of CAD diagrams into a series of mesh faces for structural analysis, not the creation of a mesh from a series of raw data points. Further, these systems do not permit dynamic variable resolution. To alter the resolution of the meshes in these systems, the operator must reinitiate and recreate the entire mesh. As such, the systems do not appear suitable for the dynamic mesh generation requirements of applications such as computer animation and special effects.

[0008] For computer mesh applications involving the hundreds of thousands of 3D data points typically used in computer animation, there is a need for the creation of a mesh system which can generate a mesh with substantial speed and rapidly vary its resolution. Speed and data storage requirements are also important factors in graphic display applications on communication systems such as the Internet. Currently, Internet graphic displays are typically communicated as massive 2D pixel streams. Each and every pixel displayed in a 2D image must have a pixel assignment. All of those pixel assignments must be transmitted via the communications system. Such a transmission requires large amounts of communication time. Further, if movement is depicted in the display, information must be continuously sent over the communications system to refresh the image or, in the alternative, one large chunk of pixel data must be downloaded to the receiving terminal before the display can begin. Replacing the 2D image display system with a 3D modeling system substantially reduces the amount of data needed to be transmitted across the communication system, because with a 3D modeling system only representative 3D data points need be sent—not a full set of assignments for every pixel displayed. A mesh generating system located at the receiver terminal could generate a full display of the object upon receiving relatively few 3D data points. Currently available meshing systems do not provide this capability.

[0009] The demands of computer animation and graphic display also call for improvement in the quality of the mesh. In the case of an irregular triangulated mesh, for example, when the angles of one triangle's corners vary widely from the angles of another triangle or the triangles differ wildly in shape and size, the mesh tends to be difficult to process for functions such as “gluing” (joining a mesh describing one part of an object to a mesh describing an adjacent part). Such a mesh will also display badly. For example, a non-optimized triangulated mesh might show a jagged appearance in the display of what are supposed to be smooth curving surfaces like the sides of a person's face. Generally, an underlying mesh model constructed from small, regularly angled triangles that tend towards being equilateral is preferable.

[0010] The procedure of B. Delaunay known as “Delaunay Triangulation” is one optimization theory which researchers have attempted to implement for the construction of a high quality, irregular meshes with homogeneous triangular structure Delaunay's theories for the creation of irregular mesh lattices derive from the teachings of M. G. Voronoi and the studies he made of “Voronoi polygons”. Voronoi determined that, for a set of data points in space, a proximity region could be defined for each data point by a convex polygon created from the perpendicular bisectors of lines drawn from the point in question to its nearest neighbors. FIG. 1a shows an example of a Voronoi polygon. Each data point is bounded by a unique Voronoi polygon created through those bisecting lines. The edges of each Voronoi polygon are shared with Voronoi polygons for the interconnected points. Thus, Voronoi's method describes a surface with a series of unique, complex polygons. FIG. 1b depicts an example of a Voronoi polygon diagram;

[0011] Delaunay's theories follow the teachings of Voronoi and seek to create an irregular triangulated mesh with a tendency for homogeneous triangles. It has been proven that every vertex of a Voronoi diagram is the common intersection of exactly three polygonal edges. Equivalently, it has been proven that each vertex of a Voronoi polygon is a center of a circle defined by three of the data points bounded by the Voronoi polygons. See, e.g., Computational Geometry, Preparata and Shamos, New York, Springes-Verlag, 1988 (second printing). From those observations, it is possible to create from any Voronoi diagram a “straight-line dual” diagram having similar properties. FIG. 1c depicts a straight line dual diagram made from the data points bounded by the Voronoi polygon in FIG. 1b. Notice that the “straight-line dual” is a triangular mesh constructed using the actual data points, not the vertices of the Voronoi polygons created by the bisecting lines. The straight-line dual diagram forms its triangular mesh shape by constructing straight line segments between each pair of data points whose Voronoi polygons share an edge. (See FIG. 1c.) It has been proven that a straight line dual of a Voronoi diagram always produces an irregular triangulated mesh. Ibid.

[0012] Delaunay used the Voronoi straight line dual to create triangulated lattices with properties derived from an understanding of the Voronoi polygonal diagram. When a triangulation follows Delaunay principles, a circumcircle defined by the vertices of a triangle will not contain another data point of the mesh. FIG. 1d depicts a circumcircle for determination of whether the triangle meets the Delaunay optimality criteria. A Delaunay mesh procedure guarantees that for each triangle of the mesh the area within a circumcircle created from the three vertices will not contain any other data point of the mesh.

[0013] Research shows that a triangulated mesh which adheres to the Delaunay circumcircle principle yields an optimized mesh which behaves well in display and graphic manipulations systems. However, Delaunayian meshing procedures, such as those described by Park and Meshkat, for example, do not operate at high speed to build a mesh from a large set of raw data points and they do not provide dynamic resolution. The few currently available meshing procedures which even attempt to optimize Delaunay theories use slow recursive means that rely on time-consuming parameter passing and checking steps. Such problems have stifled the use of real-life object depictions in computer graphics applications.

[0014] Therefore, it would represent a substantial advance in the field if a computer modeling system could be developed that allows for rapid generation of a mesh optimized by principles such as those set forth in the theories of Delaunay and Voronoi and provide dynamic resolution capabilities. Such a system would enable computer graphics systems to use real world images in all applications, including multi-resolution displays. The system would enable communication systems, such as the Internet, to display and manipulate images and models of the real world objects more rapidly.

SUMMARY OF THE INVENTION

[0015] The present invention provides a system and method for rapid computer creation of an optimal mesh with dynamic resolution capabilities. The mesh building system and method operates incrementally, building the mesh point-by-point in succession. As each point is added, optimality is preserved through a rapid, non-recursive checking procedure. In an exemplary embodiment, the system of the present invention creates a triangulated mesh, optimized by Delaunay principles. Each point is added to the mesh by linking it to other related points. Once the system establishes an initial Delaunay triangulated mesh, new points may be added quickly. First, the system locates the triangle or area in the existing mesh into which the next point will be added. Next, the system splits this triangle into three triangles, each containing two vertices of the original triangle and the new vertex. The links between the old vertices and the new point form the geometric edges of the triangle. Next, the system checks each triangle in the neighborhood around the insertion point, reconstructing if necessary to maintain an optimal triangulation such as a Delaunay triangulation. One particular advantage of the system is the speed at which it operates in mesh building and checking. The system operates in order (n log n) time and can provide a full mesh of 100,000 data points in ˜1.7 seconds operating on a 195 MHZ R10000 processor.

[0016] One aspect of the system and method of the present invention is the processing of the data points before insertion. This processing allows for dynamic resolution (up resolution/down resolution) capabilities in the level of detail for the mesh created. In placing the points into the mesh, the present invention teaches that the data points can be ordered such that the first few points (10-50, depending on the object) describe the overall basic shape of the object and each successive point adds increasing detail to that basic shape. The system and method of the present invention provides a detailed ordering routine which guarantees that each next point adds the most significant detail to the mesh compared to all remaining unmeshed points. This ordering permits dynamic “up res” or “down res” mesh construction. To increase resolution, the system adds points to further increase detail. To decrease resolution the system removes the later added points of fine detail before removing the points showing basic detail. At any given increment in the point addition process, the mesh will always have the simplest depiction of the object and contain the most significant points in terms of descriptive detail. The remaining unmeshed points will all be points which add more refined detail compared to those already in the mesh. Thus, the present invention guarantees an optimal, simplified mesh in any configuration. The procedure can be referred to as “optimal simplification.”

[0017] To maintain optimal simplification, the present invention provides a set of data structures and program elements to manage the ordering and incremental insertion of data points. In an exemplary embodiment, the distance each unmeshed point has in relation to the surface of a given mesh configuration determines the order of significance. As points are added or deleted, the configuration of the mesh changes and, for the remaining unmeshed points, the order of significance must be redetermined. The present invention provides a system for continuously ordering the unmeshed points so that the next most significant point is always identified. The system maintains speed in reordering by identifying after each insertion or deletion the unmeshed points that are affected by the change and performing reevaluation calculations only on those affected points.

[0018] To insert a new data point into the mesh, a set of computer program elements and data structures enable a computer processor to implement a series of changes. An inserted point creates additional mesh faces. The inserted point may also require alterations of the edges of the faces to preserve optimality. The system rigidly orders the vertices of the new triangular faces created by the inserted point. In an exemplary embodiment, the vertices of the triangles are ordered in counterclockwise fashion. However, a clockwise or other rigid ordering system is also suitable. The edges of the newly created triangles and the neighboring triangles related to those edges are also ordered in relation to the counterclockwise or other ordering of the vertices of each face. The present invention performs optimality checks in a systemized way, moving in a single direction following the ordering of the points, such as proceeding counterclockwise around the insertion point. The regularized indexing of the vertices (in the counterclockwise or other order) enables the checking procedure to easily orient itself within the mesh and quickly maneuver to check for optimized quality.

[0019] As each face is checked, the present invention provides that the results of each check be stored in a history list data structure. The system and method of vertex indexing and the system and method of regularized checking enables the present invention to store only minimal information about the checking. The minimal storage requirements allow for application of the present invention on communication systems like the Internet. The history list is used during point removal to reverse the mesh construction steps that occurred when the data point was inserted. In the present invention, data points are added and deleted from the mesh in LIFO (last in first out) order, thereby keeping the points of most significant detail in the mesh at all times. A data structure maintains a list of inserted points. This list is used in conjunction with the history list to remove points or quickly replicate the mesh in differing levels of detail.

[0020] As stated above, the present invention provides a checking process that works in a sequenced, step-wise manner to implement an optimization heuristic such as a Delaunay triangulation. It is an aspect of this invention that a mesh of optimal quality is maintained at all times, even in dynamic up res/down res construction. Delaunay principles dictate that a circumcircle created by the vertices of any mesh triangle will not contain any other data point. If the triangle does not pass that test, then it is not considered optimal and the edges between the vertices must be redefined or “flipped” to create a new set of triangles. The system insures that the vertices and neighbor relationships of the flipped triangles also allow for the sequenced checking.

[0021] After flipping, the system and method of the present invention continues to check for optimization, rechecking the flipped triangles and their neighbors and storing the results of that checking on the history list. The present invention teaches that an entire triangulation check must take place in an ordered fashion, such as a counterclockwise or other order as described above. If an ordered system of checking is maintained, and the results are known through the history list, the system can rapidly remove points to provide down resolution capabilities by reversing the system of mesh alterations and removing the added points in LIFO order.

[0022] The history file can be used for dynamic up resolution to gain substantial speed increases. After one mesh is built to full resolution using the point ordering and optimality procedures outlined above and collecting the record of the changes in the history list, the mesh can be almost instantaneously generated to any detail level, using the history file instead of reexecuting the ordering and checking procedures. Although building the mesh and storing the changes in the history list increases processing time for an initial mesh (by approximately 13%), the system can mesh with very high speed once the history list has been created. For a cache of 100,000 points in a 195 MHZ R10000 processor, the surface meshes at 700,000 triangles/second. For a cache of 25,000 data points, the system meshes at a speed of 750,000 triangles/second. For a cache of 4,000 data points, the system can mesh at a speed of 1,250,000 triangles/second. The speed will vary depending on the size of the data cache permitted for the data points in the computer system.

[0023] The system and method of the present invention comprises computer hardware, programmed and data structure elements. All the elements set forth are described in more detail below.

BRIEF DESCRIPTION OF THE DRAWINGS

[0024]FIG. 1a Depicts a diagram of a Voronoi polygon drawn around a data point, and its set of nearest neighbors.

[0025]FIG. 1b Depicts a diagram of Voronoi polygons for a set of data points.

[0026]FIG. 1c Depicts a straight line dual triangulation for the Voronoi diagram of FIG. 1b.

[0027]FIG. 1d Depicts a circumcircle drawn for a triangle in a Delaunay triangulation showing that the region bounded by the circumcircle contains no other point.

[0028]FIG. 2 Depicts a plurality of data points and their transformation into a series of up resolution and down resolution meshes according to the present invention.

[0029]FIGS. 2a-f Depict a plurality of data points and meshes of different resolutions.

[0030]FIGS. 3a-h Depicts a 2D representation of a plurality of data points inserted into a mesh and deleted from it in the order of their descriptive significance.

[0031]FIG. 4 Depicts an overview of basic programmed elements and data structures used to implement an exemplary meshing system with up res/down res capabilities.

[0032]FIG. 5 Depicts an exemplary ordering of points of a mesh face and shows the relationship of those points to neighboring faces according to the present invention.

[0033]FIG. 6 Depicts an exemplary process flow for the initiate mesh function of the present invention.

[0034]FIG. 7a Depicts an initial triangle mesh configuration made with reference to a plane.

[0035]FIG. 7b Depicts an initial mesh configuration made with reference to a plane.

[0036]FIG. 7c Depicts an initial mesh configuration made with reference to a sphere.

[0037]FIG. 8a Depicts a point and its shortest distance relationship between the point and the face of the mesh.

[0038]FIG. 8b Depicts an exemplary process of locating a face with which an unmeshed point can be associated.

[0039]FIG. 9 Depicts an exemplary process flow for determining the mesh face with which an unmeshed point will be associated.

[0040]FIG. 10 Depicts an exemplary process flow for incremental insertion of one or more points by the up res/insert procedure of the present invention.

[0041]FIG. 11 Depicts the reorganizing of the relationship of vertices and neighbors of mesh faces when inserting a new point into a mesh.

[0042]FIG. 12a Depicts a mesh construction projected on to a reference object that is a plane.

[0043]FIG. 12b Depicts a mesh construction projected on to a reference object that is a sphere.

[0044]FIG. 12c Depicts two triangles checked for optimization.

[0045]FIG. 12d Depicts a two triangle configuration where the triangles must be flipped and the resulting configuration after the flip.

[0046]FIGS. 12e-g Depict possible vertex relationships between a triangle being checked and a neighbor.

[0047]FIG. 13 Depicts an exemplary process flow for switching a link between two triangles when a flip occurs.

[0048]FIGS. 14a-j Depict an exemplary execution of a neighborhood checking procedure.

[0049]FIG. 15 Depicts an exemplary process flow for a neighborhood checking procedure according to the present invention.

[0050]FIG. 16 Depicts an exemplary process flow for down res point removal.

DETAILED DESCRIPTION

[0051] i. Dynamic Meshing

[0052]FIG. 2 depicts a plurality of data points 1 which the computer system 3 of the present invention will use to build a series of up resolution and down resolution meshes 2 (e.g., 2 b, 2 c, 2 d, 2 e and 2 f). FIG. 2a depicts an exemplary plurality of data points 1. The plurality of data points 1, also referred to as a cloud of points, can be collected in any number of ways, such as by user input or scanning. A system and method for collecting data points through scanning is described in pending U.S. patent application Ser. No. 08/620,684, filed on Mar. 21, 1996 and entitled “System and Method for Rapid Shape Digitization and Adaptive Mesh Generation”, and in pending U.S. patent application Ser. No. 08/679,498, filed on Jul. 12, 1996 and entitled “Portable 3D Scanning System and Method for Rapid Shape Digitizing and Adaptive Mesh Generation”. Those applications are expressly incorporated herein by reference. The computer system 3 processes the incoming data according to the teachings of the present invention and outputs the mesh data structures (represented by meshes 2 b-f) which can be displayed, manipulated and used to create depictions of the modeled real-world objects, terrains and other surfaces.

[0053]FIG. 2b depicts mesh 2 b, an initial mesh of comparatively low resolution. FIG. 2c depicts mesh 2 c, a mesh of a middle level of resolution. FIG. 2d depicts mesh 2 d, a mesh of highest resolution. The computer system 3 of the present invention permits rapid, almost instantaneous creation of meshes having a graduated increase in the quality of mesh resolution. Each mesh from mesh 2 b to 2 d continues to incorporate more and more of the data points 1, until, as shown in mesh 2 d, all the data points are incorporated into the mesh.

[0054] The present invention also permits rapid down resolution in mesh construction. Mesh 2 e (depicted in FIG. 2e) provides a mesh of lower resolution than mesh 2 d. Mesh 2 f (depicted in FIG. 2f) returns the mesh to the low resolution quality, similar to mesh 2 a. The present invention provides for rapid data point removal and deconstruction of triangulated detail following downward resolution. Because the present invention maintains a specific history of the additions and subtractions of points to and from the mesh and a rigid optimality checking sequence, the addition and deletion of the sequence of points can be monitored by the system and thus its history can be stored in a compact, coded sequence for rapid reversal and mesh regeneration.

[0055] In the exemplary embodiment, the system creates an irregular triangulated mesh as shown in FIG. 2b. The edges of the mesh faces, e.g., edges 4, 6 and 8 in mesh 2 b to create faces, such as triangle 10. The vertices of any triangle, e.g., points 12, 14, and 16, are data points from the cloud of points 1 added through the incremental input of data points. Each triangle in the mesh, e.g., triangle 10, has a set of neighboring triangles, e.g., neighbors 18, 20, and 22. The faces, edges and vertices can be associated with other information concerning the object, such as normal data, texture map data and ambient light information. In this way, a mesh model can be used to output lifelike displays and other representations.

[0056] The embodiment of the system 3 employs a computer (not shown) comprising a central processing unit (“CPU” or “processor”) to accept input data, manipulate the data, and create data structures related to the model building, programmed elements used by the processor, and one or more memories to house the data, data structures and program elements. The computer also typically includes a display device and input devices like a keyboard and a mouse. In an exemplary embodiment, the computer sold under the product name “Indy” and built by Silicon Graphics Incorporated is one computer that is suitable to implement the system of the present invention. For more information concerning the Silicon Graphics' Indy™ computer system, the reader is referred to information and references listed at the following website: http://www/sgi.com/products/indy. A set of programmed elements provides instructions the processor executes to perform the operations of the computer system 3. In the exemplary embodiment, programmed elements are written in the C++ programming language. For more information on the C++ programming language the reader is referred to the following publications which are expressly incorporated herein by reference: The C++ Programming Language, Bjarne Stroustrup, Addison Wesley Publishing Co., 1991; C++ Inside & Out, Bruce Eckel, Osborne McGraw-Hill, 1993.

[0057] ii. Optimal Simplification: Point Ordering to Establish and Preserve the Most Significant Details

[0058] For rapid, dynamic resolution mesh generation, the computer systems of the present invention provides that the points be ordered by significance in describing the shape of the basic object, terrain or other surface. By ordering the random data points according to descriptive significance, the computer system fully approximates the basic contours of an object, terrain or other surface at a low resolution using relatively few selected points. The computer system 3 dynamically revises the initial mesh for increasingly higher resolution, and gives upward resolution, or “up res” capability, by adding the additional points. The computer system 3 maintains optimal simplification during “up res” additions as each next point added is the most important in terms of descriptive significance. The computer system 3 also supports dynamic downward resolution or “down res” capability through its technique of removing the most recently added points of less significant detail and reversing the sequence of mesh alterations by which the points were added. The computer system 3 maintains optimal simplification in the “down res” deleting of points.

[0059]FIGS. 3a-h depicts a 2D representation of a set of data points and their construction into a mesh structure by the ordering technique of the present invention. The principles also apply in 3D applications. Points 100, 101, 102, 103, 104, 105, 106, 107 and 108 represent a cloud of points, from which the present invention constructs meshes. A geometric object 110, such as plane, or sphere, provides an initial reference for determining significance. As shown in FIG. 3a, all of the points lie at different distances from the initial reference 110 (e.g. compare distance 112 with distance 113). To build mesh of the lowest resolution, the present invention locates a basic number of data points which are closest to the reference 110, (e.g. points 100, 101 and 103) and the farthest point from the reference (e.g. point 102).

[0060]FIG. 3b shows the mesh built using the initial data points. Each of the segments depicted, (e.g. the segments between points 100 and 102) represent in 2D, a 3D face of a mesh. The points that have not yet been added to the mesh can be seen to relate to the surfaces. In FIG. 3b, points 106 and 105 relate to face A, 120, and points 104, 107 and 108 relate to face C, 124. No points relate to face B, 122. The distances that were previously computed for the points with regard to the initial plane 110 must now be recomputed to determine, for the remaining unmeshed points, their distances in relation to the newly created mesh. Those distances can be computed with respect to either a normal line to the relevant face (e.g. distance 116 for point 104) or with respect to a normal line to the reference plane 110 (e.g. distance 118 for point 104). After recalculating the distances for the points, the procedure then selects the point having the largest distance away from the mesh (e.g. point 104 in FIG. 3b). Point 104, now being most significant, is introduced into the mesh.

[0061]FIG. 3c depicts the resulting mesh after adding point 104. The mesh of FIG. 3c provides a general low resolution image of the surface and has changed the mesh from FIG. 3b only by altering face C, 124. As showning FIG. 3c, face C, 124 has changed into two faces, C1, 126 and C2, 128.

[0062] The addition of a new point, such as point 106, 105 or 107 adds more detail to the mesh. To make the addition, the procedure must again determine the distance each unmeshed point has with respect to the new mesh faces. For many of the unmeshed points, the distances need not be recomputed, because their distance with regard to the mesh surface has not changed (e.g. points 106 and 105). In FIG. 3c it would be necessary to recompute distances only for points 107 and 108, because the addition of point 104 into the mesh only caused a change to face C, 124. Upon recomputing, the procedure selects point 108 to be added to the mesh. Point 108 is the furthest point away from the mesh compared to points 105, 106 or 107. It is the most significant point to add in this configuration.

[0063]FIG. 3d depicts the mesh structure after the addition of point 108. The additional point provides a greater level of detail, and greater resolution, as compared to the mesh generated in FIG. 3c. The procedure continues adding points as described. The addition of point 108 into the mesh requires a recomputation of the distance point 107 has to the new mesh. Points 105 and 106 require no recomputation. In the next step, the system inserts point 107, point 106 and then point 105. FIG. 3e depicts a mesh configuration at full resolution, with each and every data point added.

[0064] The present invention also achieves downward resolution capability through its system of ordered removal of points. Starting from the high-resolution mesh depicted in FIG. 3e the system rapidly removes points from the mesh in LIFO (last in first out) order thereby retaining the most significant details in the mesh. As described below, the system provides the capability of storing information concerning the order in which the points were added and storing information concerning the changes that took place to build the mesh. FIG. 3f shows the mesh after removal of the last point previously added, point 105. FIG. 3g shows the mesh after removal of point 106. FIG. 3h shows the mesh configuration after the removal of point 107.

[0065] Apart from the up/down resolution capability, the ordering system of the present invention further enables the user to pinpoint a level of detail for the mesh by selecting a tolerance in terms of mesh point distance. When a user specifies a tolerance (e.g., tolerance=one millimeter) the procedure operates to create a mesh which would include all those points whose distance to the mesh was greater than the set tolerance. All remaining points would be left out of the mesh, because those points represent details more refined than the specified tolerance. This ability to specify tolerances permits less detailed meshes to be created for systems such as the Internet. On the Internet, an initial mesh could be transmitted at a given tolerance and then, later, additional points could be added as necessary to “up res” the quality of the mesh.

[0066] iii. Process Flows and Data Structures

[0067]FIG. 4 depicts an overview of basic programmed elements and data structures used to implement an exemplary meshing system with dynamic resolution, up res/down res capabilities, such as the computer system 3 . An initiate mesh function 130 executes procedures to establish an initial mesh based on an initial reference object (e.g., a sphere, plane or other mathematically describable form). After establishing the initial mesh, an up resfinsert function 132 enables points to be incrementally inserted into the mesh following the optimal simplification technique of the present invention. The up res/insert function 132 also tracks the history of the insertions and maintains the optimal quality characteristics of the mesh. The down res/remove point function 134 permits removal of the points following the same technique. A user control function 136 provides a user interface and allows the selection of a set of options, such as a meshing detail gradient toggle function (which permits the user to incrementally add or delete data points) or a specific tolerance meshing function.

[0068] Each of the basic programmed elements 130, 132 and 134 will access one or more of a set of data structures 140 as described in further detail below. In the exemplary embodiment depicted in FIG. 4, a data point list 142 contains the 3D X,Y,Z values for each of the input data points such as the cloud of points 1 depicted in FIG. 1. In the exemplary embodiment, the data point list 142 can be a dynamically allocated array set to the number of data points input through user control or other input, such as by a scanning process. As the distance calculations and insertions for the unmeshed points are made in relation to particular faces of the mesh, a face list 144 contains the current face to which an unmeshed point is associated. In the exemplary embodiment, the face list 144 is a dynamically allocated array with links, such as pointers, to the vertex entries in the data point list 142.

[0069] A distance list 146 contains the calculated distance of each unmeshed data point from its relevant face on the existing mesh. When a point is entered into the mesh, the distance value for the point is set to 0 (or its entry can be deleted from the list). In the exemplary embodiment, each entry in the distance list 146 is linked by a pointer to an entry in the data point list 142, which enables each distance to be associated to a specific unmeshed point. As the system of the present invention inserts points according to the optimal simplification technique, the system organizes the entries in the distance list 146 by a technique that returns the point having the largest distance from its face. The computer science technique of “heaping” is one such organizational system suitable for storing distance values and returning the largest distance values. A heap organizes a list into a tree structure where each parent node has a distance value that is larger than each of its children. The tree structure for the distance list 146 is depicted in FIG. 4. The processor places the largest distance value at the top of the tree structure (e.g., position 150) along with a pointer to its vertex on the data point list 142.

[0070] When the system adds a data point to the mesh, it places a reference to that data point on an insertion list 154. In the exemplary embodiment, the insertion list 154 is a stack array configured as a LIFO ordered stack. The system adds pointers that refer to the data points on the data point X,Y,Z coordinates list 142. List pointer 155 tracks the stack entries and shows where the next open slot appears.

[0071] A mesh data structure 156 maintains information for each face, its vertices, edges and neighboring faces. The mesh data structure 156 contains a plurality of face records (e.g., 157) which contains information concerning each geometric mesh face. The set of face records together form the data structure for the mesh model. In an exemplary embodiment, the system represents a face record in a triangulated mesh as follows: Record: “FACE” NEIGHBORS: Neighbor #0, Neighbor #1, Neighbor #2 (Array of 3 pointers to other FACE records) VERTICES: Vertex #0, Vertex #1, Vertex #2 (Array of 3 pointers to vertices on data point list 142) FLAGS Integral numbers specifying properties of a face such as its position on a triangulation INDICES (e.g., to associate unmeshed points on face list 144 with this face)

[0072] The data element NEIGHBORS consists of an array of three pointers, each pointing to a FACE record for a neighboring (adjacent) face in the mesh. The data element VERTICES is an array of pointers that references data points in the data point list 142.

[0073] The system stores data concerning each face in a manner organized according to the teachings of the present invention In an exemplary embodiment, as shown by the triangle in FIG. 5, the system orders the points of a triangle in a countercloclwise sequence, 0, 1 and 2. It is understood that the vertices could also be numbered in clockwise order or ordered by another fixed ordering system. The system orders the neighboring triangles following the sequence of ordered vertices. The system indexes neighbor #0 to be directly opposite vertex 0. Neighbor #1 is directly opposite vertex #1. Neighbor #2 is directly opposite vertex #2. As is described below, the present invention provides a system to maintain this ordering while maintaining the optimality of the triangles in the mesh. When a point is inserted into the mesh, the system generates new face records for the mesh data structure and redetermines (where necessary) the distance relationships between the unmeshed points and the existing mesh. On point insertion, the mesh can require reconfiguration within the general neighborhood of faces around the inserted point to maintain optimality. This system uses the ordering of the vertices and neighbors (as is described in further detail below) to complete the needed mesh reconfigurations.

[0074] Consequently, when a new point is inserted, the neighborhood of faces around the addition must be checked for optimality and reconfigured if necessary. Referring again to FIG. 4, a history list 158 provides a data structure which is used to track the changes executed by the system when reconfiguring the mesh to an optimal state. The present invention uses the history list 158 in conjunction with the insertion list 154 to then perform dynamic up/down resolution point insertions and deletions. When the system adds a new point to the mesh, it also adds a reference on the point insertion list 154. After the point is inserted, the processor checks the configuration for optimality and adds a reference for each checking step on the history list 158. The history list 158 in the exemplary embodiment comprises a stack structure in which the indications of checks and changes are added in LIFO (last in first out) order, just like the ordering of points on the insertion list 154. Because the system checks for optimality in a regularized way, the system can track all insertions. The system can then delete points simply by following in reverse the stacks of the history list 158 and the insertion list 154. The system can also regenerate meshes of more detail by following the sequences of point insertions and reconfigurations already indicated on the insertion list 154 and the history list 158. To perform extremely rapid up/down resolution mesh generations, the system will first build a history list and point insertion list to full resolution and then simply use those lists to regenerate meshes to any level of detail, such as a user-specified tolerance.

[0075] As points are added to the mesh or taken away from it, the faces of the mesh change (as was seen above in FIGS. 3a-h). As those faces are changed the distances of points associated with the altered face also change, sometimes dramatically. (For example, in FIG. 3b and 3 c, the distance that point 107 had in relation to the mesh surface changed dramatically when point 104 was inserted.) When alterations occur, new distances must be recalculated for the data points whose associated faces become altered. The system maintains a list of references to the unmeshed points involved on an unassigned list 160 as explained further below. In an exemplary embodiment, the unassigned list operates as a dynamically allocated array containing pointers to entries in the data point list 142.

[0076] The data structures 140 described above are used with the basic program elements to perform system functions. It is understood that the data structures 140 are exemplary, the teachings of the present invention can also be implemented using other data structure configurations. In addition to the elements described above, there are also a number of task performing subroutines and functions which are described below.

[0077] iv. Mesh Initiation

[0078]FIG. 6 sets forth an exemplary process flow for the initiate mesh function 130 of FIG. 4. Step 170 sets forth the data input for the function, which is the data point list 142 or some other device giving access to that list, like a pointer. In step 172, the processor operates to determine an initial reference object that the system will use to build the mesh from the cloud of data points 1 (now listed in the data point list 142). A user may wish to mesh in reference to different geometric objects. For example, the user may wish to mesh a set of data points for top down view of a topographical surface or one side of a person's head with reference to a plane. However, on other occasions the set of data points may represent data points from both a front side and back side of an object (or all sides) and for those point clouds a user may wish to build meshes with reference to a sphere.

[0079] In FIG. 6 a set function 174 permits a user to select an initial reference object and determine its location with reference to the plurality of data points. For a planar reference object a user can select an equation for a plane that exists above, below or within the plurality of data points depending on user preference. For a spherical reference object the user typically will select arlequation for a unit sphere at a center point location within a center of mass for the cloud of points. Many different techniques are currently available and can be used to implement the functions of the set function 174. For example, the set function can determine the equation for a planar reference object by a minimum sum of squares method. For a spherical reference object, the set function 174 can determine the sphere location by a fitting function which determines center of mass. In an exemplary embodiment, the user executes the set function 174 in a preprocessing step, such that during the mesh initiation process 130 the equation of the reference object and its shape is already determined. In such an embodiment, the set function 174 returns the predetermined values to step 172.

[0080] After obtaining a basic reference object, such as a unit sphere, the processor begins a loop in step 176 to calculate the distance each point has from the reference object and place each distance on the distance list 146. To calculate the distance for a point, the processor in step 176 calls a distance function 178 to calculate a distance, such as the normal distance (in the case of a plane) or (in the case of a sphere) the distance to its center point. The distance function 178 returns a numerical distance value. In step 176, the processor adds the returned numerical distance value in reference to the data point onto the distance list 146. A heap manager 180 provides a set of program instructions to maintain the distance list 146 in a heap format which always returns a pointer to the vertex having the largest distance value. In the mesh initiation procedure, the system will also maintain a list of the data points having the lowest distance values as well (not shown).

[0081] In step 182 (FIG. 6), the system proceeds to construct an initial mesh. The system can be configured in many different ways to construct an initial mesh. According to the teachings of the present invention, any initial 3 or 4 points can be used to construct the initial mesh. Even randomly selected points are suitable. The teachings of the present invention show that after initial mesh construction an incremental addition of 10-50 points (depending on the object) with optimal simplification point ordering will provide sufficient detail to render a low resolution model. Depending on the user selected reference object (e.g., plane or sphere) the computer creates an initial triangulation in the form of either a square (constructed from two triangles) or a tetrahedron (constructed from four triangles). A square is used for planar triangulations, tetrahedrons are used for spherical triangulations. Alternatively, when the plane is the reference object, the single triangle can be used as an initial triangulation. Although the system described can use any three or four points, in an exemplary embodiment for a planar reference object, the system selects the three or four points that are found to be closest in distance to the plane. A selection of points which lie closest to the plane and bound the largest space projected on that plane is also a suitable criteria. For a spherical reference object, an exemplary embodiment selects four data points which most closely determine a tetrahedron of equilateral triangles. The first three selected points create a triangle, which will be the first face of the mesh. The system creates a face 1 record and sets vertices #0, #1 and #2 to pointers which reference the X,Y,Z coordinates on the data point list 142. The distances for those points are now removed from the distance list 146 by the heap manager 180. On the face list 144, the system creates entries for the data points which reference the face 1 record.

[0082]FIG. 7a shows the two triangle initial mesh with a planar reference object. In an alternative environment, the planar space could be initially triangulated by just one triangle (as shown in FIG. 7b). For the initial faces the system will also create neighbor face links. In both FIGS. 7a and 7 b there is a region outside the boundary of the triangle region into which data points may be inserted. The present invention provides that the regions can be divided into null neighbor regions. For example in FIG. 7b the present invention divides the unbounded region into three null neighbor areas 202, 204 and 206. The system divides the null neighbor regions by a line which bisects the angle formed at each edge vertex (e.g., angle 205). Each null neighbor region forms a plane determined by the two points of the mesh edge and a third point set at an infinite value. The system uses this null neighbor planar equation in computing distances for the unmeshed points (as is described in further detail below).

[0083] If the initial reference is a sphere, FIG. 7c shows that the initial mesh constructed takes the form of a tetrahedron. In such a case, the mesh construction step of 182 (FIG. 6) creates a mesh with four faces using the four data points (e.g., 210, 212, 214 and 216) which best approximates a tetrahedron. With the tetrahedron, each triangular face has as its neighbors the tetrahedron's other triangles. With the tetrahedron, it is not necessary to designate null neighbor regions as was the case with the planar triangulation determined above.

[0084] For each face record in either the planar or spherical example, the system orders the vertices and neighbors according to the counterclockwise structure described above with reference to FIG. 5. The processor in step 182 also checks the initial configuration for the Delaunay criteria and reorganizes the face edges as necessary.

[0085] After the initial mesh is constructed, the processor begins a loop in step 184 (FIG. 6) to recompute all distances for the unmeshed points in relation to the new initial mesh. This process involves two basic steps. First, the processor must determine a specific face with which to associate the point. Second, the processor must calculate the distance that the data point has in reference to that face.

[0086] For any given point, the processor attempts to find the face that is closest to it. A locate function 186 provides a pointer or other reference to the face that will be related to the unmeshed data point and used for distance calculations. In an exemplary embodiment, the face returned has the shortest normal distance to the data point. In an alternative embodiment, the face can be determined with reference to the shortest line from the reference object to the point which intersects the face and the point. When the initial reference object is a plane the locate function also will handle the special case when an unmeshed data point lies in a null neighbor region.

[0087]FIG. 8a depicts a point 300 and the distance relationships between it and face 302, as determined by a normal line 304 or, alternatively intersection line 306 from the reference object.

[0088] For purposes of implementing the. present invention many different procedures are suitable for determining the face of insertion. In the exemplary embodiment, the face location process in step 186 (FIG. 6) is determined based on proximity to the last acted upon face. The described system searches quickly by traversing a direct line of faces between that face and the point to be inserted to locate a face for distance calculation.

[0089]FIG. 9 depicts an exemplary process flow of locate function 186. In discussion of the exemplary process flow, the reader is also referred to FIG. 8b which depicts a representation of the mesh and shows how the face is located.

[0090] Referring to FIG. 9, the process flow begins in step 400 where the input is a pointer reference to the last face examined by the system. That face is set to the “current face” and a loop begins in step 401 to determine whether the point to be added lies in that face. Referring to FIG. 8b, point 310 is the point to be added and the last face, triangle 312, is set to now be current face.

[0091] Referring to FIG. 9 the processor proceeds in step 402 to locate the center point of the current face (point 314 in FIG. 8b). In step 404 (FIG. 9), the procedure determines an equation for the line between points to be added (e.g., 310, FIG. 8b) and the center point of the triangle (e.g., 314). The line can be referred to as AB.

[0092] In step 406 of FIG. 6b, the procedure then tests each edge of the current face (e.g., triangle 312, FIG. 8b) to determine whether the line AB will “intersect” one of the edges (i.e., cross one of the bounds of an edge of that triangle). The processor determines that intersection by projecting the mesh configuration and the AB line onto the reference object and determining whether an intersection occurs. In FIG. 8b, the line AB intersects edge 321 of triangle 312.

[0093] Referring to FIG. 9, step 408 provides that if there is an intersecting edge in the current triangle, the procedure will move to step 410 and examine the neighboring triangle that is adjacent to the intersecting edge. In FIG. 8b the neighboring triangle is triangle 319. However, in step 411 (FIG. 9) if the edge is “NULL” the procedure must take steps to handle that special case (which occurs when the surface is modeled in reference to a place instead of a sphere). In step 412 the processor sets a null neighbor flag to indicate that the new point will not be inserted into an existing triangle. As the current face remains the closest triangle (even though the next point will not be inserted into it), the processor will also store the information about the triangle and set a DONE flag. If, in step 411, the neighbor is not “NULL” the processor simply resets the current face to be the neighbor in step 413 . The process set forth in FIG. 9 continues in step 414 to loop and return to step 401 and perform the same checking procedure for the new triangle.

[0094] Referring to FIG. 8b the procedure continues checking in a typical case by locating center point 318 of triangle 319. The line AB is now drawn between points 310 and 318. The procedure checks the edges of triangle 319 and finds an intersecting edge 323. The procedure moves to neighboring triangle 325. In that triangle, the AB line defined by center point 322 and 310 also intersects an edge. The process then continues to triangle 327, which is now the current face. For triangle 327, there is no edge which intersects between the line between center point 326 and point 310 (line 328). Referring again to FIG. 9, the result causes the processor to set a DONE flag in step 416 and exit the loop. In step 418, the processor returns a pointer to the found triangular face (or the special flags and pointers for the “NULL” case when a plane is the initial reference object as noted above).

[0095] Returning to FIG. 6, when a face is located for the point, the processor alters the slot on face list 144 for the data point so that it contains a reference to the newly associated face. Then the processor proceeds to calculate the distance between the point and the face. The distance function 178 (described above) performs this function and return the distance value. If the point is located in a null neighbor region (e.g., the null flag is true), the processor calculates the closest distance the data point has to the associated nearest neighbor face on the mesh. The processor then adds the calculated distance value for the data point on the distance list 146 using the heap manager 180. The processor also adds for the data point a reference to the closest face (plus an indication of whether the point lies in a null neighbor region) on the face list 144.

[0096] The point processing continues in step 184 until the processor assigns all unmeshed points to a face (with an indication made for null neighbor regions) and calculates a distance value for them. The heap structure now has at position 150 a reference to the point of most significant detail. The mesh is now ready for up resolution point insertion.

[0097] V. Incremental Insertion of Data Points

[0098]FIG. 10 depicts an exemplary process flow for an incremental insertion of one or more of the remaining unmeshed points by the up res/insert procedure 132. Step 502 begins a loop which permits processing of, for example, one data point, all of the remaining unmeshed data points, or a set of data points up to a user set distance tolerance. In step 504, processing begins by obtaining from the distance list 146 the point with the largest distance. As seen above, that distance entry provides a reference to the X,Y,Z coordinate values in data point list 142 for that point. In the exemplary embodiment, the processor reads this point value, (using the heap manager 180) removes the point's distance value from the heap (or nullifies it to zero) and reconfigures the heap. For the given point, the procedure in step 506 next accesses the face list 144 to locate its corresponding face. The point will be inserted into this face, and that insertion causes the processor to make a number of adjustments to the mesh.

[0099] For one adjustment, insertion of a point into a face necessitates readjustment of all other unmeshed points that were related to the face. Their distances to the mesh face must be recalculated. In step 508, the processor places pointers to those points on the unassigned list 160. (Later, if additional adjustments must be made in checking for optimization, the unmeshed points related to those other faces are also added to the list.) Once the processor identifies the face for point insertion and provides for the unmeshed points related to it, the processor proceeds in step 509 to place a reference to the data point on the insert list 154 and moves in step 510 to insert the next point into the mesh. The addition of the new point splits the current triangle into three new triangles. An insert function 512 splits the selected mesh face and reorganizes the points and edges to create new face records. As stated above, the vertices and neighbor are ordered by a specific and predetermined numbering system.

[0100]FIG. 11 depicts an addition of point 360 to triangular face 362 (“FACE”) and shows the alteration of the face, vertices and neighbor relationships that the addition requires. Before the addition of point 360, triangle 362 with vertex points A, B and C (points 350, 351 and 352 ordered counterclockwise) carried the following relationships in its face data structure record: Record: “FACE” (Triangle 362) NEIGHBORS: Neighbor 0 (Triangle 364), Neighbor 1 (Triangle 366), Neighbor 2 (Triangle 368) VERTICES: V0 (point 350), V1 (point 351), V2 (point 352)

[0101] Adding point 360 requires changes to the data structure links. The addition creates two additional faces: a RIGHT face (with vertices 360, 350, 352) and a LEFT face (with vertices 360, 350 and 351).

[0102] The original triangle “FACE” no longer has as its Vertex 0 at point 350. The processor sets vertex 0 for FACE to point 360. The new, smaller triangle has as vertices points 360, 351 and 352. The links to Neighbor 1 (triangle 366) and Neighbor 2 (triangle 360) also must be changed, because these triangles are no longer neighbors FACE. The process will first change FACE's neighbor link from “Neighbor 2” to “LEFT”. The processor will also change FACE's from “Neighbor 1” to “RIGHT.” The data structure for the revised FACE will appear as follows: Record: “FACE” NEIGHBORS: Neighbor 0, RIGHT, LEFT VERTICES: V0 (new point 360), V1 (point 351), V2 (point 352)

[0103] The system creates new faces records, RIGHT and LEFT, as follows: Record: “RIGHT” NEIGHBORS: Neighbor 1, LEFT, FACE VERTICES: V0 (new point 360), V1 (point 352), V2 (point 350)

[0104] Record: “LEFT” NEIGHBORS: Neighbor 2, FACE, RIGHT VERTICES: V0 (new point 360), V1 (point 350), V2 (point 351)

[0105] The processor also replaces Neighbor 1 (triangle 366)'s neighbor link to FACE with a link to RIGHT. The processor finds the link to FACE by searching each of NEIGHBOR 1's neighbor links until it finds the one that points to FACE. The processor replaces Neighbor 2 (triangle 368)'s neighbor link to FACE with a link to LEFT in the same manner.

[0106] This configuration has particular advantages, because it guarantees that the new vertex is always V0 for each face. Also, since each vertex corresponds to an opposite edge and neighbor, the ordering creates a way to check the configuration for optimality in a regularized way. First, the neighbor that will be checked for optimality will always be the side involving neighbor 0. Furthermore, the indexing system guarantees that, by repeatedly moving toward “Neighbor 1” of each face, the system will circle around all the faces containing the new point and will eventually get back to the original face. Thus, the indexing creates a way to make a complete optimality check.

[0107] vi. Checking for Optimality of Mesh Quality

[0108] Referring again to FIG. 10, incremental mesh building proceeds in step 514 to check the new point addition for optimality, re-organizing the mesh if the configuration created with the new point is not optimal in quality. In an exemplary embodiment, the optimal quality principle to be followed is the principle of Delaunay triangulation. To implement a Delaunay triangulation check the present invention projects the data point values in the mesh and 3D mesh configuration on to the reference object. FIG. 12a depicts a mesh construction projected on to a reference plane. FIG. 12b depicts a mesh construction projected on to a unit sphere. The present invention provides that the calculations for Delaunayian circumcircles and intersections shall be made with reference to those projected coordinates.

[0109]FIGS. 12c-d depict the basic optimization principle of Delaunay triangulation as implemented in the present invention. For a triangle, e.g., triangle 370 in FIG. 12c, Delaunay principles hold that a circumcircle described by the three vertices of the triangle will not contain any other points of the mesh. In FIG. 12c, circumcircle 371 circumscribes no other point, such as point 372. Hence, triangle 370 is optimal by Delaunay principles.

[0110]FIG. 12d, on the other hand, depicts a triangle configuration (between triangle 374 and 375) that is not optimal and requires “flipping.” As shown, circumcircle 377 for triangle 374 bounds point 376. In such a case, Delaunay principles hold that edge 379 must be flipped to create new edge 381 (as shown) and two new triangles 380 and 382. In creating the new configuration after point insertion, it may be necessary to make many flips while checking the resulting triangles for optimality. The present invention speeds the flipping process by creating a predetermined order to the checking and flipping.

[0111] Referring again to FIG. 10, the up res/insert procedure 132 begins in step 514 a procedure to check all triangles in the region of the insertion point for optimality. The basic procedure of this step is to check the triangles to determine whether they should be flipped. For each triangle tested, the processor in step 514 makes a call to a basic flip function 516 which tests a triangle, executes a flip if necessary and returns a yes/no flag showing whether it executed a flip.

[0112]FIG. 13 depicts an exemplary process flow for exchanging a link for two triangles when a flip might occur. This is the execution of the flip function 516. In this discussion, reference is also made again to FIG. 12d which shows exchange of links in the mesh as the flip occurs. Referring to FIG. 12d, the procedure operates to check triangle “a”, 374. Neighbor #0 of triangle “a” is triangle “b”, 375.

[0113] Referring to the procedure of FIG. 13, the processor in step 600 proceeds to calculate a circumcircle (e.g., 377, FIG. 12d) for the triangle in question, e.g., Triangle “a”. In an exemplary embodiment, the system calculates and stores the circumcircle equation for use in later checking procedures. This circumcircle equation can be reused until the triangle is altered by a point insertion or flipping. The storage of the equation provides additional processing speed. In step 602, the processor checks to insure that the vertices of Neighbor 0 (Triangle “b”) do not fall within the circumcircle 377. If the points do fall within, the processor in step 604 determines that the edges of the triangles must be flipped.

[0114] In step 606 of FIG. 13, the processor performs an adjustment to the face record for Triangle “b”. The processor maintains the counterclockwise ordering of the triangles, vertices and neighbors, but realigns them so that the point bounded by the circumcircle, e.g., point 376, FIG. 12d will be in the Vertex 0 slot and Triangle “a” will be in the Neighbor 0 data slot of Triangle “b”. FIG. 12e depicts the desired alignment between the Triangles “a” and “b”. However, it is possible at the outset that the alignment between the triangles may have a different vertex ordering, such as shown in FIGS. 12f and 12 g.

[0115] To reorient the vertices and neighbors, the processor first searches Triangle “b”'s neighbor list for the position of Triangle “a”. For example, in FIG. 12f Triangle “a” would be in the Neighbor 1 slot opposite Vertex 1. In FIG. 12g, Triangle “a” would be in the Neighbor 2 slot opposite Vertex 2. The position of Triangle “a” in Triangle “b”'s neighbor list is represented by a variable, k such that Triangle “b” (Neighbor #k)=Triangle “a”. Having located the k position, the processor in an exemplary embodiment reorients the face data structure for Triangle “b” as follows for the vertices. First, the processor sets Vertex k slot to the data point reference found in the Vertex (3−k) slot of triangle b. Second, the processor sets the Vertex (3−k) slot to the data point reference found in the Vertex 0 slot of triangle b. Third, the processor sets the vertex #0 slot to the initial data point reference found in Vertex k slot.

[0116] The neighbor references must also now be realigned to match the vertices as follows. First, the processor sets the Neighbor #k slot of Triangle “b” (originally a reference to Triangle “a”) to the triangle face reference found in the neighbor (3−k) slot. The processor next sets the Neighbor (3−k) slot to the face reference contained in the Neighbor 0 slot of Triangle “b”. Third, the processor sets the Neighbor 0 slot to a reference to Triangle “a” with the vertices and neighbors of Triangle “b”. Readjusted, the two triangles will have the vertex alignment as shown in FIG. 12e.

[0117] Referring again to FIG. 13, the processor, after the realignment process of step 606, proceeds to execute the flip in step 608 and 610. In step 608, the processor reorganizes the vertices of (newly aligned) Triangle “b” as follows:

[0118] Vertex 0=Triangle “a”'s Vertex 0 (i.e., the newly added point)

[0119] Vertex 1=Triangle “b”'s Vertex 0

[0120] Vertex 2=Triangle “b”'s Vertex 1

[0121] In addition, the processor reorders the neighbor for Triangle “b” in step 608 as follows:

[0122] Neighbor 0=“b”'s Neighbor 2

[0123] Neighbor 1=“a”'s Neighbor 1

[0124] Neighbor 2=Triangle “a”

[0125] In addition, the processor in step 610 executes changes to the data structure to triangle “a”. The Vertex 2 slot in Triangle “a”'s data structure is set to Triangle “b”'s Vertex 1. The Neighbor 1 link in Triangle “a” is replaced with a new link to Triangle “b”. Also, “a”'s Neighbor 0 slot is now set to point to “b”'s former Neighbor 1.

[0126] With these changes the flip is complete and the former Triangle “a” and “b” 374, 375 in FIG. 12d are now redefined as triangles “a” and “b”, 380 and 382. This invention teaches that the reorganization procedure in flipping preserves the setup and new point relationship created by the above described insert point procedure. In steps 612 and 614 the processor stores a reference to the outcome of the check on the history list (as shown below with reference to FIG. 14). In steps 616 and 618 the processor returns from the checking function.

[0127] vii. Checking All Triangles

[0128] With the flip function 516 described above the present invention can check all mesh faces that might be effected in point insertion. When a new point is added the new triangle configuration may need to be reorganized by flipping to maintain Delaunay optimality. In addition, the newly flipped triangles may require additional flipping to keep a state of optimality in relation to other neighbors. Referring back to FIG. 10, in step 514 the processor executes a systematic checking procedure when a new point is added.

[0129]FIGS. 14a-j depict an exemplary execution of a neighborhood checking procedure for step 514. The present invention provides a rigid checking sequence. In the exemplary embodiment, the history list has two bit value slots for each history indicator as follows:

[0130] 00=no flip

[0131] 01=flip where the k value is the first slot

[0132] 10=flip where the k value is the second slot

[0133] 11=flip where the k value is the third slot

[0134] It is understood, however, that other flip history list configurations are suitable. The rigid sequence permits the history list 158 to be created with little data overhead. The rigid checking sequence also provides that the flips made during checking can be later undone, reversed, or “flipped” following the history list in reverse as points are removed from the mesh. In the exemplary embodiment, the checking procedure works in a counterclockwise direction from an initial, “home face” triangle. In FIG. 14a, the system inserts point 704 into triangle 700. The insertion splits triangle 700 into three smaller subtriangles 700 a, the revised face of triangle 700, triangle 701, the new right neighbor face of triangle 700 a and triangle 702, the new left neighbor of triangle 700 a. As can be seen, the history list 158 is blank as the insertion has required no revision. Checking for optimality begins with revised face 700 a, the “home face.” In FIG. 14b, 706 depicts a circumcircle created from the vertices of triangle 700 a. As circumcircle 706 includes point 707, the triangle configuration is not optimal because it does not adhere to Delaunay principles. A flip must occur.

[0135]FIG. 14c shows the results of the flip procedure (described above). A new edge has been constructed between points 704 and 707, replacing the original point 1-2 edge of triangle 700. As described above, the processor revises triangle 700 a to form triangle 700 b. Triangle 709 a is the revised form of triangle 709. The flip function (516, FIG. 10) returns a “YES” value to indicate that a flip Qccurred. The flip function 516 also marks the flip by inserting a value, such as the “11” value placed on the history list 158 at position 708 and augmenting the stack pointer.

[0136] The triangles created by the flip will also require checking. Of the two triangles created, the procedure will remain on triangle 700 (now 700 b) and create circumcircle 710 from its verticle and checks triangle 700 b against triangle 711. That circumcircle is depicted in FIG. 14d. As triangle 700 b is optimal, the checking procedure moves in a counterclockwise direction to triangle 709 a. Before moving, the processor writes an indication of the result of the second check (“00”) on the history list 158 (at position 712) and augments the pointer.

[0137]FIG. 14e depicts the check of triangle 709 a. Circumcircle 713 shows that it bounds no points other than the vertices of the triangles, thus it is considered optimal in the exemplary embodiment. As the flip function (516, FIG. 10) returns a “NO” indication, the processor makes an indication of this result (“00”) on the history list 158 (at position 714) and continues in a counterclockwise direction to the next neighboring triangle.

[0138] It is noted that the present invention's indexing system for faces, neighbors and vertices creates an easy way for counterclockwise (or clockwise) movement through the neighboring faces. The indexing system ensures that after insertion and during flipping the selection of neighbor #1 will always access the next face in counterclockwise direction. (The invention can also be configured for clockwise movement by, for example, reversing the index order of points and neighbors.)

[0139] Following the counterclockwise movement, FIG. 14f depicts the checking procedure re-executed on the next triangle 701. Triangle 701 was one of the new triangles created upon insertion of point 704. When the system executes the flip routine, circumcircle 715 shows that point 718 of triangle 717 lies within its bounds. Such a configuration is not optimal and requires flipping. The flip function returns a “YES” indicator (e.g., 10 when the k value is the second slot) which is stored on the history list 158 (at location 716). The flip revises triangles 701 and 717 into flipped triangles 701 a and 717 a (FIG. 14g).

[0140] With the flip, the system must recheck triangle 701 a. FIG. 14g depicts that check. In the call to the flip (516, FIG. 10), circumcircle 719 shows that it bounds no extraneous points. Hence, it is an optimal configuration. The flip function 516 returns a “NO” indicator and stores an indication (“00”) at location 720 on history list 158.

[0141] The checking routine continues in a counterclockwise direction to the revised triangle 717 a. FIG. 14h shows circumcircle 721 computed from triangle 717 a's vertices. The circumcircle shows that the triangle is optimal, and the flip function 516 writes a “NO” indicator (“00”) to a location 722 on the history list. Checking moves in a counterclockwise direction to triangle 702.

[0142]FIG. 14i depicts an optimality check on triangle 702. Circumcircle 723 shows that point 725 of triangle 726 lies outside and is not bounded. Consequently, the flip test for the triangle will return a “NO”. In position 724, the flip function 516 enters an indicator (“00”) for the negative result, and moves counterclockwise to the next triangle, 700 b.

[0143] In FIG. 14j, triangle 700 b is the face where the checking procedure began. The present invention provides that upon reaching the starting or home face in any neighborhood check the system can cease checking because the system has checked all triangles within the region of the insertion point for optimality.

[0144]FIG. 15 depicts an exemplary process flow for the checking procedure described above and referenced in step 514 of FIG. 10. Referring to FIG. 15, step 850 receives input: a pointer to the face, the home face, which must be checked. The check will proceed in a specific, (e.g. counterclockwise) direction about the neighborhood of triangles. The checking procedure begins and ends at the home face.

[0145] In step 851, the processor begins a loop to check the home face triangle until it needs no flipping. In step 852, the processor first checks the home face to see if it is optimal as revised (e.g., see triangle 700 a in FIG. 14b). The flip function 516, called in step 852, calculates a circumcircle for the triangle in question and then determines if the remaining vertex in the Neighbor 0 triangle (i.e. the triangle opposite the newly inserted point) lies within the circle (This is the procedure described above with reference to FIG. 13.) If the remaining vertex does not lie within that boundary, the triangle passes the optimality test, because by the terms of a Delaunay triangulation, it is optimal. On passing the test, the flip function 516 returns a “FLIP” or “NO FLIP” indicator such as a boolean flag set to “1” or “0.”

[0146] However, if the triangle in question fails the test, the edge joining the triangle in question and its opposite must be flipped. (The procedure for flipping this edge was described above with reference to FIG. 13.) If a flip is required, the flip procedure manages the face records in the mesh data structure 156 (FIG. 10), adds the reference to the history list 158 (FIG. 10) and returns a “FLIP” indicator to the checking procedure in step 852. If a flip has occurred, the home face must again be rechecked for optimality because it has been revised. In step 854, the processor loops to step 851 and continues checking the home face until it is optimal. When the home face has been optimized (e.g. there was no flip), the processor moves to step 856 and sets a current face to equal the next clockwise face in the order of checking. In the exemplary embodiment, that face is Neighbor 1 of the current face.

[0147] Step 860 begins a loop to check the remaining faces in counter-clockwise order. In step 861, a FLIP flag is reset. A secondary loop begins in step 862 to check each neighboring triangle until it requires no more flipping. Step 864 calls the flip function 516, which calculates a circumcircle using the vertices of the face in question, tests the remaining vertex in Neighbor 0 for optimality and writes to the history list 158 (FIG. 10) the results of flip. The flip function 516 also returns to the checking procedure an indication of whether a flip occurred: “FLIP” if a flip occurred; “NO FLIP” if the triangle is optimal. If the triangle was flipped it must be rechecked as described above. In step 868, the processor loops to step 862 which will continue checking the same triangle until it is optimal. Once the triangle checks, the processor moves to step 870 where the current face (the face in question) is reset to be the next counter-clockwise face (neighbor #1). In step 872, the processor loops to step 860 to begin the checking procedure for the next triangle. If, in step 860, the current face is the home face then the checking procedure has come full circle. It is now known that the mesh is optimal as all triangles pass the Delaunay criteria. In step 874, the procedure completes and the processor returns to the insert procedure step 514 (FIG. 10) and the task of inserting the next point of most significant detail.

[0148] vii. Resetting for Additional Point Insertions

[0149] Referring again to FIG. 10, the processor moves to reset the unmeshed points for additional up res insertions after the point has been added and checked. In step 518, the processor begins a loop to recalculate distances for all unmeshed points referenced on the unassigned listed 160. For each point, the processor must first locate a new face for distance calculations. To find those faces, the processor uses the steps of the locate function 186, as described above. ARer the processor calculates the distance, it then adds that new distance to the distance list 146, reheaping as necessary. When these points are processed, the system is again ready to insert additional points of increasing detail. In step 520, the processor loops to step 502 and continues until the up res/insert procedure is complete such as when the points are inserted to a desired tolerance.

[0150] viii. Down Resolution Deletion of Points

[0151] The system achieves downward resolution through removal of data points from the mesh. The insert list 154 provides an ordered list of data points ready for removal. The face list 144 contains reference to the face into which the system inserted the point. The system uses the history list 158 to play back all the flips in reverse order for that point insertion until the data point to be removed sits again within the triangle into which it was inserted. After the processor plays back the flips to reach an initial insertion configuration (such as that depicted in FIG. 11 or 14 a), the data point can be removed from the mesh and the LEFT and RIGHT faces deleted. In downward resolution point removal, the present invention maintains the hierarchy of detail established in incremental insertion. The system removes points in last-in-first-out (LIFO) order. As the most recently added points add more refined details compared to the earlier added points, the downward resolution process of the present invention removes the finer details first and keeps points of most significant detail in the mesh.

[0152]FIG. 16 depicts an exemplary process flow and an exemplary down/res point removal function 134 (referenced in FIG. 4). Step 900 begins a processing loop to remove points until the occurrence of a user defined condition. For example, the system can remove points while the remaining unmeshed points have distances smaller than the specified tolerance (e.g., 1 millimeter). In step 901, the processor decrements the stack pointer on the insertion list 154 to obtain a reference to the data point to be removed. The processor also locates in the face list 144 the mesh location into which the system inserted the point (which is now revised, e.g., see 700, 700 a and 700 b, FIGS. 14a-j). The processor sets the home face pointer to the insert face in step 902. The processor sets a current face variable to be equal also to the insert face in step 902. The processor next proceeds to reverse all flips related to the point insertion, moving in a clockwise direction (opposite of the counterclockwise direction used in the insert procedure above). It is understood that if the processor performed point insertion in a clockwise manner, point removal would proceed in an opposite, counterclockwise direction. The ordering of vertices and neighbors of the present invention dictates that Neighbor 2 of each triangle will move the checking procedure in a clockwise direction.

[0153] Step 903 begins a loop to reverse the series of flips that may occur during point insertion. The loop proceeds until the initial insertion configuration is re-achieved. This condition can be defined in many ways. In an exemplary embodiment the loop will proceed until the following conditions exist:

[0154] current face=home face; and

[0155] current face (Vertex 0)=the point for removal;

[0156] Neighbor 1 (Vertex 0)=the point for removal;

[0157] Neighbor 2 (Vertex 0)=the point for removal; and

[0158] current face (Vertex 1)=Neighbor 2 (Vertex 2);

[0159] current face (Vertex 2)=Neighbor 1 (Vertex 1);

[0160] Neighbor 2 (Vertex 1)=Neighbor 1 (Vertex 2).

[0161] Step 904 begins the flip reversal procedure by decrementing the pointer 159 of the history list 158 and grabbing the two bit flip history value (e.g., “00”, “01”, “10” or “11” value, as described above). In step 906 if the flip history value indicates that no flip occurred, the processor moves to step 908 and sets the current face point to Neighbor 2 of the current face. The processor in step 909 then loops to step 903 to continue checking the flip history of that new triangle.

[0162] Returning to step 906, if the history list value shows that a flip occurred, the processor must reverse the flip. In step 910, the processor places all the unmeshed data points that will be affected by a reverse flip onto the unassigned list 160. After point removal, the distances these points have from the mesh must be recomputed. (The process also adds the point to be removed to the unassigned list 160.) In step 912 the processor reverses the flip by invoking a reverse flip function 913. The reverse flip function 913 switches a flip configuration back to its original state. In FIG. 12d, for example, a reverse flip switches the configuration of triangles 382 and 380 back into the configuration depicted by triangles 375 and 374. Referring again to the process flow in FIG. 16, the function 913 reverses the flip between the current face and its neighbor #1 face. Compared to the example in FIG. 12d, the current face represents the “a” triangle and the Neighbor 2 face represents the “b” triangle.

[0163] In the exemplary embodiment the processor in the reverse flip function 913 resets Triangle “b” (the Neighbor 1 face's) vertices as follows:

[0164] Vertex 0=“b”'s Vertex 1

[0165] Vertex 1=“b”'s Vertex 2

[0166] Vertex 2=“a”'s Vertex 1

[0167] The processor resets Triangle “a” (the current face's) Vertex 2 “b”'s Vertex 1. The processor also resets the neighbor links in Triangle “b” (the Neighbor 1 face) as follows:

[0168] Neighbor 0=“a”

[0169] Neighbor 1=“a”'s former Neighbor 0

[0170] Neighbor 2=“b”'s former Neighbor 0

[0171] The processor resets the neighbor relationships for the “a” triangle (current face) as follows:

[0172] Neighbor 0=“b”

[0173] Neighbor 1=“b”'s (former) Neighbor 1

[0174] Neighbor 2=no change

[0175] The processor will also use the k value stored in the history list to reverse the point ordering that the processor performed to align the two triangles for a flip. That alignment procedure was described above with reference to FIGS. 12e-g.

[0176] After reversing the flip, with the function 913, the processor returns to the point removal procedure (FIG. 16) and returns in step 909 to the beginning of the checking loop (at step 903). This process of moving clockwise around the area in question and reversing flips using the history file continues until the processor returns to the home face. This process of reversing flips can be seen viewing in reverse order FIG. 14 from FIG. 14i to FIG. 14a. Using FIG. 14 as an example, the processing steps 903-914 of FIG. 16 continue until the state in FIG. 14a is reached. In FIG. 14a, the point for removal (e.g. point 704), is now enclosed in the home face triangle 700.

[0177] The processor removes the point in step 916 and removes the related faces: LEFT and RIGHT. FIG. 11 provides an example for depiction of this process. In FIG. 11, data point 360 sits in a center triangle, initially called FACE. To delete the RIGHT face, the processor sets the Neighbor 1 slot in FACE to Neighbor 1 (triangle 366). In Neighbor 1's data structure, the processor locates the Neighbor slot in which RIGHT was referenced and now sets that slot to FACE. To delete the LEFT face, the processor sets the Neighbor 2 slot in FACE to Neighbor 2 (triangle 368). In Neighbor 2's data structure, the processor locates the Neighbor slot in which LEFT was referenced and now sets that slot to FACE. In step 918, the processor then sets the Vertex 0 slot in FACE to be equal to the V2 slot of RIGHT (or V1 of LEFT). The data point is now removed from the mesh.

[0178] In step 920 the processor prepares for additional point removal or point additions by recalculating for all unmeshed points on the unassigned list 160 the distances they now have in relation to the current mesh (as described above). After that, the processor loops in step to return to step 900 in the point removal algorithm and either completes its process or continues removing points, such as to a user determined tolerance.

[0179] xi. Additional Use of the History List

[0180] The complete history of data point insertions from the initial mesh to full resolution can be computed in advance and then later used for even more rapid mesh generation. Such an additional use has advantages in applications such as computer games and other graphic applications, where the generation of objects and surfaces must occur at a rapid pace. For such applications, the computer system 3 of the present invention would be further configured to generate a complete, fall detail history list for the object in question, before the application is used. The computer system 3 would store the set of data points, the history list, the data structures for the initial mesh and the list of inserted points in the memory until the application required display of the mesh. Then, during execution of the of the application, the computer can generate dynamic up resolution or down resolution meshes, following the order of the insertion list and the history file. The processor would access the data in those lists using pointers to scroll through the lists. This use of the history list saves computation time in application. First as new points are added or removed from the mesh, distance values for the altered points would not have to be calculated. Second, use of the history list would save additional processing time because the computations in the sequence of checking steps to insure Delaunayian optimization would not have to be repeated.

[0181] The invention continues as described above. The above described embodiment of the invention is meant to be representative only, as certain changes may be made therein without departing from the clear teachings of the invention. Accordingly, reference should be made to the following claims which alone define the invention. 

We claim:
 1. A computer-based system for generation of a mesh model of a three-dimensional object or surface, the mesh model having increasing and decreasing resolution of detail, the computer, including a processor coupled to a memory and program elements adapted to accept as input a plurality of data points, with each data point being a coordinate describing the object or surface to be modeled, and construct a mesh to model the object or surface, the system comprising: (a) a mesh construction element to determine the distance each data point has in relation to a preselected reference object and select according to the distance values a set of points for the creation of the mesh; (b) the mesh model construction element further adapted to construct the mesh using the selected set of points and organizing the points into a set of connected faces, each face being a geometric shape with a predetermined number of vertices, and the ones of the points for each face comprising the vertices of that face, the boundary connection between any two adjacent vertices of a face comprising an edge of the face, with a face being connected to another adjacent face in the mesh through a shared edge and shared vertices creating that shared edge; (c) a data point detail ordering element to determine which of the remaining unmeshed data points lies farthest from the mesh; (d) a point insertion element to insert the data point into the mesh face that is closest to that data point by reorganizing the arrangement of vertices of the face for insertion and including the data point for insertion in that rearrangement to create a new set of faces, each new face having the predetermined number of vertices and the new faces sharing edges with neighboring faces to create a surface with the other faces of the mesh; (e) the point insertion element further adapted to create a reference on an insertion list to the data point for insertion in a sequence as the last point inserted; (f) an optimality checking element to determine whether the construction of newly created faces meets a predetermined optimality criteria; (g) a rearranging element to redefine in a sequenced order the boundaries of the newly created faces when one of the newly created faces does not meet the predetermined optimality criteria, the rearranging element further comprised to place an indication on a history list in sequence for each redefinition made for a particular face; and (h) the data point detail ordering element further comprised to redetermine the distance between any unmeshed data point whose closest face was altered either by data point insertion or rearrangement and comparing those redetermined distances with the previously determined distances to identify the next point for insertion.
 2. The system of claim 1 configured for downward resolution removal of data points and further comprising a data point removal element to locate the reference to the last inserted data point on the insertion list and delete that data point from the mesh by removing the data point as a vertex from any face and rearranging the vertices of the remaining faces following, in reverse order, the sequence of information stored on the history list to return the mesh to a state of optimal configuration without the removed data point.
 3. The system of claim 1 where the initial reference object is a sphere.
 4. The system of claim 1 where the initial reference object is a plane.
 5. The system of claim 1 configured to continue inserting unmeshed data points to build a mesh model to a level of detail with a specified tolerance, the system comprising: (a) the data point detail ordering element further adapted to determine whether the remaining unmeshed data points are greater in distance to the mesh than a predetermined, tolerance value; and (b) a tolerance insertion element to continue the insertion of data points until the distance that all remaining unmeshed data points have to the closest face of the mesh is less than the tolerance value.
 6. The system of claim 1 where the optimality criteria is the Delaunay principle of optimality for an irregular triangulated mesh.
 7. A computer-based system for inserting a data point into a mesh model of a three-dimensional object or surface to increase resolution of the mesh detail and removing the data point to downwardly decrease resolution, the computer comprising a processor coupled to a memory, the processor configured to accept as input a plurality of data points, each one of the plurality of data points being a coordinate describing the object or surface to be modeled, the data point to be inserted being one of a subset of the plurality of data points that have not yet been inserted into the mesh, the system comprising: (a) a mesh constructed from ones of the data points and comprising a set of connected faces creating a surface approximating the object or surface, with each face being a triangle determined by ones of the inserted data points, the ones of the data points for each face comprising the vertices of that face with a boundary connection between any two adjacent vertices of a face comprising an edge of the face and each face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge; (b) the computer adapted to determine which one of the unmeshed data points lies farthest from the mesh by locating for each unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points and identify that point as a point for insertion; (c) the computer adapted to insert the data point into the mesh by arranging the data point for insertion and the vertices of the face that is closest in distance to the point for insertion (the insertion face) to create a set of new faces with the data point for insertion being shared in each new face, the new faces being connected to other faces in the mesh through vertices and edges as were previously established in the insertion face, the processor establishing neighbor relationships for each new face; (d) the mesh insertion element further comprised to place a reference to the data point for insertion on an insertion list sequenced as the last point inserted; (e) an optimality checking element to enable the processor to check one of the newly created faces to determine whether its construction meets optimality criteria, the checking procedure checking a new face and one of its neighbor faces to evaluate its vertice and edge configuration for optimality; (f) a rearrangement element to reconfigure the triangle being checked and the neighbor to redefine their boundaries when one of the newly created faces does not meet the predetermined optimality criteria, with the rearrangement element further comprised to place an indication of the rearrangement on a history list as the next action; (g) the optimality checking element further comprised to check the all the newly created faces; (h) the data point detail ordering element further comprised to redetermine the distance between any unmeshed data point whose closest face was altered either by data point insertion or rearrangement and comparing those redetermined distances with the previously determined distances to identify the next point for insertion; and (i) a data point removal element to locate the reference to the last inserted data point on the insertion list and delete that data point from the mesh by removing the data point as a vertex from any face and rearranging the vertices of the remaining faces following, in reverse order, the sequence of information stored on the history list to return the mesh to a state of optimal configuration without the removed data point.
 8. A computer-based system for inserting data points into a Delaunayian triangulated mesh model of a three-dimensional object or surface to increase resolution of the mesh detail and permit downward resolution removal of points, the computer comprising a processor coupled to a memory, the processor configured to accept as input a plurality of data points, each one of the plurality of data points being a three dimensional coordinate describing the object or surface to be modeled, the data point to be inserted being one of a subset of the plurality of data points that have not yet been inserted into the mesh, the system comprising: (a) a mesh model constructed from ones of the data points and comprising a set of adjacent faces creating a surface approximating the object or surface, with each face being a triangle determined by ones of the inserted data points, the ones of the data points for each face comprising the vertices of that face, the vertices for each face being ordered sequentially to have first, second and third vertices with a boundary connection between any two adjacent vertices of a face comprising an edge of the face, with a face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge, the neighbors of the face being ordered following a sequential order corresponding to the ordering of the face's vertices; (b) a data point detail ordering element, comprised to enable the processor to determine which one of the unmeshed data points lies farthest from the mesh by locating for each unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points; (c) a mesh insertion element, comprised to enable the processor to insert the data point determined to lie farthest from the mesh into the mesh by incorporating the data point for insertion and reorganizing the arrangement of vertices of the face that is closest in distance to the point for insertion (the insertion face) to create a set of three new triangles, each having its vertices ordered in a sequential manner with the data point for insertion being the first point in each new triangular face, the new triangles being connected to other triangles in the mesh through vertices and edges as were previously established in the insertion face, the new faces creating a continuous surface with the other faces of the mesh, the neighbors for each new face being ordered following the sequential order and corresponding to ordering of the face's vertices; (d) the mesh insertion element further comprised to place a reference to the data point for insertion on an insertion list as the next point inserted; (e) an optimality checking element to enable the processor to check one of the newly created faces to determine whether their construction meets Delaunayian optimality criteria, by checking the newly created face with a neighbor triangle to determine whether the non-shared vertex of the neighbor lies within a circumcircle determined by the vertices of the newly created triangle; (f) a rearrangement element to reconfigure the shared edge between the triangle being checked and the neighbor to create two new flipped triangles, if the combination does not pass Delaunayian optimality; (g) the rearrangement element further comprised to place an indication of the flip on a history list as the next action; (h) the optimality checking element further comprised to recheck the triangle previously being checked if it was rearranged, using the rearrangement element to flip and indicate the flip history, if the new configuration does not meet Delaunayian optimality; (i) the optimality checking element further comprised to proceed to a neighbor of the triangle being checked according to a preselected sequence and perform a check for optimality; (j) the optimality checking element further comprised to proceed checking the first neighbor of all checked triangles until it arrives again to the first triangle checked; and (k) the data point detail ordering element further comprised to redetermine the distance between any unmeshed data point whose closest face was altered either by data point insertion or optimality checking and comparing those redetermined distances with the previously determined distances to identify the next point for insertion.
 9. The system of claim 8 further comprising a point deletion element comprised to reference the insertion list to locate the last point inserted and remove the point by reconfiguring the faces to maintain optimality by following the indications in the history list in reverse order.
 10. The system of claim 8 further comprising. (a) the point insertion element, further comprised to enable the processor to insert the data point determined to lie farthest from the mesh into the mesh by rearranging the face for insertion by replacing the first vertex of that triangle with the data point for insertion, creating a new right neighbor triangle having the data point for insertion as a first vertex, the first face point as the second vertex and the second face point as the third vertex, and creating a new left face with the data point for insertion as the first vertex, the third face point as the second vertex and the first face point as the third vertex, the newly organized triangles being referred to as insertion face, left and right, and the processor configured to adjust the identification of neighboring triangles to follow the order of vertices; and (b) an optimality checking element further comprised with a flipping element to rearrange the shared edge between the triangle being checked and the first neighbor, if the combination does not pass Delaunayian optimality, the flipping element enabling the processor to rearrange the triangles by redefining the vertices for the first neighbor triangle by setting the first vertex to be the first vertex of the triangle being checked, setting the second vertex to be the first neighbor's former first vertex and setting the third vertex to be the first neighbor's former second vertex and redefining the vertices of the triangle being checked to change its third vertex to be the former first vertex of the first neighbor.
 11. A system for generation of a mesh model of a three-dimensional object or surface with increasing and decreasing the resolution of detail, the system configured to accept as input a plurality of data points, each data point being a coordinate describing the object or surface to be modeled, the system comprising: (a) means for determining the distance each of the data points has in relation to a preselected initial reference object and select based on those determined distances a set of points to create an initial mesh, the set of points being descriptive of the basic shape of the object modeled; (b) means for creating an initial mesh model of the object using the selected set of points for the initial mesh by organizing the points into a set of connected faces, with each face being a geometric shape with a predetermined number of vertices and the ones of the data points for each face comprising the vertices of that face, with a boundary connection between any two vertices of a face comprising an edge of the face and each face being connected to another adjacent face in the mesh through a shared edge and shared vertices creating that shared edge; (c) means for determining which of the remaining unmeshed data points lies farthest from the mesh by locating for each remaining unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points to identify from the comparison the next point for insertion and identify the closest face to that point as the face for insertion; (d) means for inserting the data point into the mesh by reorganizing the arrangement of vertices of the face that defines the mesh and including the data point for insertion in that rearrangement to create a new set of faces from those points, each new face having the predetermined number of vertices, and the new faces creating a continuous surface with the other faces of the mesh; (e) means for referencing the data point for insertion on an insertion list as the next point inserted, and placing an indication on a history list of the sequence of steps taken during reconfiguration for the data point insertion; and (f) means for determining which of the remaining unmeshed data points lies farthest from the mesh by determining a new distance for each data point whose face used in previous distance calculations was altered during insertion and sorting those recaptured values with the previously computed values to find the unmeshed data point that lies farthest from the mesh and identifying the closest face to that point as the face for insertion.
 12. A computer-based system for increasing and decreasing the resolution of a mesh model of an object or surface, the computer, including a processor coupled to a memory, adapted to accept as input a plurality of data points comprising coordinates that describe the object or surface and further construct and deconstruct the mesh using the data points, the system comprising: (a) the computer adapted to identify from the unmeshed data points the next data point to insert into the mesh by determining which unmeshed data point lies farthest in distance from the mesh, that data point being the next point of detail; (b) the computer further adapted to enable the processor to take predetermined reorganizing steps to connect the data point for insertion into the mesh; (c) the computer further adapted to store in sequence a history of the reorganization steps taken in relation to the point for insertion on a history list; and (d) the computer further adapted to remove the last point inserted by reversing the reorganization steps as indicated on the history list.
 13. The system of claim 12 further comprising: (a) the computer further adapted after inserting the data point to continue increasing mesh resolution through the insertion of data points by identifying the next data point for insertion by finding the data point that lies farthest from the mesh and inserting that point into the mesh, by following the reorganization steps and storing in sequence the history of the reorganization steps; and (b) the computer further adapted after removing the last data point to continue removing data points in reverse order of their insertion by following the indications on the history list to reverse the steps of their organization until there is one unmeshed data point whose distance from the mesh is greater than a predetermined tolerance value.
 14. A mesh data structure used on a computer for generating a mesh model of an object or surface from a plurality of data points, the computer comprising a processor to manipulate the mesh data structure and a memory to store the mesh data structure, each data point being a coordinate describing the object or surface to be modeled, the mesh data structure comprising: (a) a face data record with vertex slots to hold references to data points that make up the vertices of a face in the mesh, the face in the mesh being a geometric shape with a predetermined number of vertices, the ones of the data points referenced in the slots comprising the vertices of the face and data points being placed in the slots in a predetermined order to traverse the vertices in an ordered sequence, with the boundary edges of the face being determined by any two adjacent vertex slots and each face being connected to another adjacent, neighboring face through a shared edge and a pair of shared vertices creating that shared edge; and (b) the face data record being further comprised with neighbor slots to reference face data records representing neighboring faces in the mesh, the neighbor slots being configured to link a neighbor face reference to a particular vertex in the vertex slot and follow the predetermined order of the vertices for the face.
 15. A computer-based system for inserting a data point into a mesh model of a three-dimensional object or surface, the computer comprising a processor and memory, the processor configured to accept as input a plurality of data points, each one of the plurality of data points being a three dimensional coordinate describing the object or surface to be modeled, the mesh model being constructed from ones of the data points and comprising a set of adjacent faces creating a surface with each face being a geometric shape having the same predetermined number of vertices and having a boundary determined by ones of the inserted data points, the ones of the data points for each face comprising the vertices of that face and a boundary connection between any two vertices of a face comprising an edge of the face and each face being connected to another adjacent face in the mesh through a shared edge and the shared vertices creating that shared edge, the data point to be inserted being one of a subset of the plurality of data points that have not yet been inserted into the mesh, the system comprising: (a) an ordering element, comprised to enable the processor to identify which one of the unmeshed data points lies farthest from the mesh by locating for each unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points; (b) a mesh building element, comprised to enable the processor to insert the data point into the mesh by reorganizing the arrangement of vertices of the face and including the data point for insertion in that rearrangement to create a new set of faces from those points, each new face having the predetermined number of vertices, and the vertices and edges of the new faces arranged to create a continuous surface with the other faces of the mesh; (c) an optimality checking element to enable the processor to check the set of newly created faces to determine whether their construction meets a predetermined optimality criteria; and (d) a rearranging element to redefine the boundaries of the newly created faces when one of the newly created faces does not meet the predetermined optimality criteria.
 16. A computer-based system for increasing resolution of a mesh model of an object or surface, the computer, including a processor coupled to a memory, adapted to accept as input a plurality of data points comprising coordinates that describe the object or surface and further construct the mesh using the data points, the system comprising: (a) the computer adapted to identify from the unmeshed data points the next point of detail to insert into the mesh by determining which unmeshed point lies farthest in distance from the mesh; and (b) the computer further adapted to connect the data point for insertion into the mesh and follow a predetermined path using the mesh structure to organize the mesh according to a predetermined optimality criteria.
 17. The system of claim 16 further comprising the computer further adapted to continue identifying the next data point for insertion by finding the data point which lies farthest from the mesh, inserting that point into the mesh, and reordering the unmeshed data points to find the next point to insert until the distance of all the remaining unmeshed data points falls below a predetermined tolerance value.
 18. A computer-based system for decreasing the resolution of a mesh model of an object or surface, the computer including a processor coupled to a memory, adapted to accept as input a plurality of data points comprising coordinates that describe the object or surface and further construct and manipulate the mesh based on the data points, the system comprising: (a) an insertion list to sequentially record the order of insertion into the mesh of the data points as the processor constructs a mesh; (b) a history list to record any information concerning the sequence of alterations made by the processor to the mesh as the data points were inserted into the mesh during construction; (c) the processor adapted to remove data points from the mesh following in reverse sequential order as indicated on the insertion list; and (d) the computer further adapted to reverse any changes to the mesh having resulted from the initial insertion of the data point being removed, as indicated on the history list.
 19. A computer based system for checking optimality, based on Delaunayian principles, of data points being inserted into a triangulated 3D mesh model, the computer including a processor coupled to a memory, configured to accept as input a plurality of data points, with each data point being a coordinate describing the object or surface to be modeled, and the computer further configured to construct a mesh to model the object or surface, the system comprising: (a) a data structure to describe the mesh faces to include each data point in the mesh as a vertex of at least one triangular face of the mesh, sequentially order the vertices of each face of the mesh, and describe the relationship of each face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge; (b) the computer adapted to insert a new data point into the mesh by reorganizing the arrangement of vertices of a face for insertion to create a set of three new faces, each new face having a data structure similar to the existing faces; (c) the computer further adapted to check the mesh faces for Delaunayian optimality by determining a circumcircle from the vertices of the newly created triangles and determine if any other mesh data point lies within the circumcircle; (d) the computer further adapted to rearrange the mesh if any other data points fall within the created circumcircle; and (e) the computer further adapted to continue checking all the faces affected by the input of the new data point, the check to proceed in an order determined by the ordering of the vertices in the face data structure.
 20. A computer based system for checking optimality, based on Delaunayian principles, of data points being inserted into a triangulated 3D mesh model, the computer including a processor coupled to a memory, configured to accept as input a plurality of data points, with each data point being a coordinate describing the object or surface to be modeled, and the computer further configured to construct a mesh to model the object or surface, the system comprising: (a) a data structure to describe the mesh faces such that each data point in the mesh is a vertex of at least one triangular face of the mesh, each face of the mesh has its vertices ordered sequentially to have first, second and third vertices with a boundary connection between any two adjacent vertices of a face comprising an edge of the face and any face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge, the neighbors of the face being ordered following the sequential order corresponding to the ordering of the face's vertices with a first neighbor face, second neighbor face and third neighbor face; (b) the computer adapted to insert a new data point into an existing face and alter the data structure such that the existing face is reorganized to create a set of three new faces, each having the new data point as one vertex and the remaining two vertices being vertices of the existing face, the vertices of the new faces being ordered in a sequence consistent with the existing face's vertices, where the new data point is the first ordered vertex in each of the three new faces, and the neighbors of the new faces being ordered following a predetermined sequential order corresponding to the ordering of the new face's vertices; (c) the computer further adapted to begin a checking sequence at one of the new faces created by the insertion of the new data point, by creating a circumcircle from the vertices of the face, and checking the face's first neighbor for Delaunayian optimality; (d) the computer further adapted to reorient the vertices of the first neighbor face in the data structure, if the combination does not pass Delaunayian optimality, so that the vertices of the first neighbor are ordered such that the first vertex is opposite the face being checked; (e) the computer further adapted to rearrange the shared edge between the face being checked and the first neighbor, if the combination does not pass Delaunayian optimality, the rearrangement occurring by redefinition in the data structure of the vertices for the first neighbor face by setting the first vertex to be the first vertex of the face being checked, setting the second vertex to be the first neighbor's former first vertex and setting the third vertex to be the first neighbor's former second vertex and redefining in the data structure the vertices of the face being checked to change its third vertex to be the former first vertex of the first neighbor; (f) the computer further adapted to redefine the neighbors of the rearranged faces in the data structure based on the new ordering of the vertices; and (g) the computer further adapted to recheck the face previously being checked if it was rearranged, the checking on the face proceeding until it passes the Delaunayian optimality criteria.
 21. The system of claim 20 further comprising the computer adapted to proceed, after completing a Delaunayian optimality check on a face, to the first neighbor of the face and perform a Delaunayian optimality check on the first neighbor, the computer proceeding thereafter to each succeeding first neighbor face and performing a Delaunayian optimality check at each said face until it arrives at the first face checked.
 22. The system of claim 20 further comprising the computer adapted to project the 3D mesh model onto a 2D reference object creating a 2D triangulated mesh on the reference object that is representative of the original 3D mesh model, and performing the checking on the 2D projected mesh.
 23. The system of claim 20 further comprising the computer adapted to retain the equation of the circumcircle for a particular face on a list with reference to a particular face and using that stored equation when that face is checked a second time.
 24. The system of claim 20 where the reorientation of the first neighbor's vertices is accomplished by assigning the values 0,1,2 to the first, second and third vertices and neighbors respectively, storing a variable(k) equal to the neighbor value of the face being checked in the data structure of the first neighbor face, the first neighbor's vertices are redefined such that the vertex k value is assigned to the original vertex (3−k), the original vertex (3−k) value is assigned to the original vertex with value 0, and the value 0 is assigned to the original vertex k, resulting in a reorientation of the first neighbor vertices such that the vertex assigned value 0 is the first vertex, the vertex assigned value 1 is the second vertex, and vertex assigned value 2 is the third vertex.
 25. A computer based system for increasing and decreasing the resolution of a mesh model of an object or surface, the computer including a processor coupled to a memory, adapted to accept as input a plurality of data points comprising coordinates that describe the object or surface, and construct a mesh to model the surface or object, the system comprising: (a) a history list containing information identifying a sequential list of entries comprising the sequence of operations executed by the processor during a mesh construction, to generate a mesh model containing the complete set of data points describing the object or surface; (b) a data pointer to reference entries in the history list of the operation taken in the construction of the mesh; (c) the processor further comprised to reset the data pointer to an initial location in the sequence of entries in the history list; (d) the mesh construction element further adapted to enable the processor to advance through the entries of the history list and build a mesh model following the sequence of operations on the history list; and (e) the mesh construction element further adapted to enable the processor to move the data pointer in reverse order through the sequence of entries in the history list to remove data points from the mesh model.
 26. A computer based system for ordering a plurality of data points to be inserted into a mesh model of an object or surface comprised of geometric faces, the computer comprising a processor to manipulate the order of the data points and a memory to store the order of the data points, each data point being a coordinate describing the object or surface to be modeled, the system comprising: (a) a location element to enable the processor to determine the mesh face which lies closest to each unmeshed data point; (b) a distance computing element to enable the processor to determine the distance each data point lies from its associated face; and (c) an ordering element to enable the processor to determine based on the distances the data point that is farthest from the mesh.
 27. A computer based system for ordering a plurality of data points to be inserted into a mesh model of an object or surface, the computer comprising a processor and a memory, the mesh model comprising a set of connected faces, each face being a geometric shape with a predetermined number of vertices, with each face being connected to another adjacent, neighboring face through a shared edge of adjacent vertices, the system comprising: (a) the computer comprised to locate the closest mesh face to each data point by drawing a line from the center point of a current face to the data point, and determining if a projection of that line intersects with the edge of the current face; (b) the computer comprised to determine if no intersection exists that the data point is associated with the current face; (c) the computer further comprised to move from the current face, if there is an intersection with an edge, to the face which shares the edge of intersection with the original face and perform the same check recursively until the closest mesh face is determined when no intersection exists; (d) the computer further adapted to determine the distance from each data point to its closest face; (e) the computer further adapted to order the data points based on the distances to locate the data point that is farthest from the mesh; and (f) the computer further adapted to re-execute the locate and distance determination procedures after each data point insertion.
 28. The system of claim 27, further comprising: (a) a face alteration storage element to record during point insertion which mesh faces become altered; and (b) the computer further comprised to reexecute the locate and distance determination procedure only for those unmeshed points whose previous distance calculation would be effected in point insertion.
 29. A method to operate a computer for generation of a mesh model of a three-dimensional object or surface, the mesh model being constructed from a plurality of data points and having increasing and decreasing resolution of detail and constructed from a plurality of data points, the computer, including a processor coupled to a memory and program elements adapted to accept as input a plurality of data points, with each data point being a coordinate describing the object or surface to be modeled, and construct a mesh to model the object or surface, the method comprising the steps of: (a) determining the distance each data point has in relation to a preselected reference object and selecting according to the distance values a set of points for the creation of the mesh; (b) constructing the mesh using the selected set of points and organizing the points into a set of connected faces, each face being a geometric shape with a predetermined number of vertices, and the ones of the points for each face comprising the vertices of that face, the boundary connection between any two adjacent vertices of a face comprising an edge of the face, with a face being connected to another adjacent face in the mesh through a shared edge and shared vertices creating that shared edge; (c) determining which of the remaining unmeshed data points lies farthest from the mesh; (d) inserting the data point into the mesh face that is closest to that data point by reorganizing the arrangement of vertices of the face for insertion and including the data point for insertion in that rearrangement to create a new set of faces, each new face having the predetermined number of vertices and the new faces sharing edges with neighboring faces to create a surface with the other faces of the mesh; (e) creating a reference on an insertion list to the data point for insertion in a sequence as the last point inserted; (f) checking to determine whether the construction of newly created faces meets a predetermined optimality criteria, (g) redefining in a sequenced order the boundaries of the newly created faces when one of the newly created faces does not meet the predetermined optimality criteria and placing an indication on a history list in sequence for each redefinition made for a particular face; and (h) redetermining the distance between any unmeshed data point whose closest face was altered either by data point insertion or rearrangement and comparing those redetermined distances with the previously determined distances to identify the next point for insertion.
 30. The method of claim 29 wherein decreasing the resolution of the mesh is accomplished by locating the reference to the last inserted data point on the insertion list and deleting that data point from the mesh by removing the data point as a vertex from any face and rearranging the vertices of the remaining faces following, in reverse order, the sequence of information stored on the history list to return the mesh to a state of optimal configuration without the removed data point.
 31. The method of claim 29 where the initial reference object is a sphere.
 32. The method of claim 29 where the initial reference object is a plane.
 33. The method of claim 29 further comprising the steps of: (a) checking whether the remaining unmeshed points are greater in distance to the mesh than a predetermined, tolerance value; and (b) inserting data points until the distance that all remaining unmeshed data points have to the closest face of the mesh is less than the tolerance value.
 34. The method of claim 29 where the optimality criteria is the Delaunay principle of optimality for an irregular triangulated mesh.
 35. A method for computer-based insertion of data points into a Delaunayian triangulated mesh model of a three-dimensional object or surface to increase resolution of the mesh detail and permit downward resolution removal of points, the computer comprising a processor coupled to a memory, the processor configured to accept as input a plurality of data points, each one of the plurality of data points being a three dimensional coordinate describing the object or surface to be modeled, the data points to be inserted being ones of a subset of the plurality of data points that have not yet been inserted into the mesh, the mesh model constructed from ones of the data points and comprising a set of adjacent faces creating a surface approximating the object or surface, with each face being a triangle determined by ones of the inserted data points, the ones of the data points for each face comprising the vertices of that face, the vertices for each face being ordered sequentially to have first, second and third vertices with a boundary connection between any two adjacent vertices of a face comprising an edge of the face, with a face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge, the neighbors of the face being ordered following a sequential order corresponding to the ordering of the face's vertices, the method comprising the steps of: (a) determining which one of the unmeshed data points lies farthest from the mesh by locating for each unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points; (b) inserting the data point determined to lie farthest from the mesh into the mesh by incorporating the data point for insertion and reorganizing the arrangement of vertices of the face that is closest in distance to the point for insertion (the insertion face) to create a set of three new triangles, each having its vertices ordered in a sequential manner with the data point for insertion being the first point in each new triangular face, the new triangles being connected to other triangles in the mesh through vertices and edges as were previously established in the insertion face, the new faces creating a continuous surface with the other faces of the mesh, the neighbors for each new face being ordered following the sequential order and corresponding to ordering of the face's vertices; (c) placing a reference to the data point for insertion on an insertion list as the next point inserted; (d) checking one of the newly created faces to determine whether their construction meets Delaunayian optimality criteria, by checking the newly created face with a neighbor triangle to determine whether the non-shared vertex of the neighbor lies within a circumcircle determined by the vertices of the newly created triangle; (e) reconfiguring the shared edge between the triangle being checked and the neighbor to create two new flipped triangles, if the combination does not pass Delaunayian optimality; (f) placing an indication of the flip on a history list as the next action; (g) rechecking the triangle previously being checked if it was rearranged and indicating a flip in the history list, if the new configuration does not meet Delaunayian optimality; (h) proceeding to a neighbor of the triangle being checked according to a preselected sequence and performing a check of the neighbor triangle for optimality, reconfiguring and indicating the flip on the history list, if the reconfiguration does not meet Delaunayian optimality; (i) the optimality checking element further comprised to proceed checking the first neighbor of all checked triangles until it arrives again to the first triangle checked; and (j) the data point detail ordering element further comprised to redetermine the distance between any unmeshed data point whose closest face was altered either by data point insertion or optimality checking and comparing those redetermined distances with the previously determined distances to identify the next point for insertion.
 36. The method of claim 35 comprising the further step of deleting points by referencing the insertion list to locate the last point inserted and removing the point by reconfiguring the faces to maintain optimality by following the indications in the history list in reverse order.
 37. The method of claim 35 comprising the further steps of: (a) inserting the data point determined to lie farthest from the mesh into the mesh and rearranging the face for insertion by replacing the first vertex of the face for insertion with the data point, creating a new right neighbor triangle having the data point for insertion as a first vertex, the first data point of the face for insertion as the second vertex and the second data point of the face for insertion as the third vertex, creating a new left face with the data point for insertion as the first vertex, the third data point of the face for insertion as the second vertex and the first data point of the face for insertion as the third vertex, and the processor configured to adjust the identification of neighboring triangles to follow the ordering of vertices; and (b) checking the newly created triangles for Delaunayian optimality by selecting one of the newly created triangles and rearranging the shared edge between the triangle being checked and the first neighbor, if the combination does not pass Delaunayian optimality, the rearranging of the triangles by redefining the vertices for the first neighbor triangle by setting the first vertex to be the first vertex of the triangle being checked, setting the second vertex to be the first neighbor's former first vertex and setting the third vertex to be the first neighbor's former second vertex and redefining the vertices of the triangle being checked to change its third vertex to be the former first vertex of the first neighbor.
 38. A method for increasing and decreasing the resolution of a mesh model of an object or surface, the mesh constructed from a plurality of data points comprising coordinates that describe the object or surface, the method comprising the steps of: (a) identifying from the unmeshed data points the next data point to insert into the mesh by determining which unmeshed data point lies farthest in distance from the mesh, that data point being the next point of detail; (b) executing predetermined reorganizing steps to connect the data point for insertion into the mesh; (c) storing in sequence a history of the reorganization steps taken in relation to the point for insertion on a history list; and (d) removing the last point inserted by reversing the reorganization steps as indicated on the history list.
 39. The method of claim 38 comprising the further steps of: (a) continuing, after inserting the data point, to increase mesh resolution through the insertion of data points by identifying the next data point for insertion, finding the data point that lies farthest from the mesh inserting that point into the mesh, by following the reorganization steps and storing in sequence the history of the reorganization steps; and (b) removing data points in reverse order of their insertion by following the indications on the history list to reverse the steps of their organization until there is one unmeshed data point whose distance from the mesh is greater than a predetermined tolerance value.
 40. A method for inserting a data point into a mesh model of a three-dimensional object or surface, the mesh model created from plurality of data points, each one of the plurality of data points being a three dimensional coordinate describing the object or surface to be modeled, the mesh model being constructed from ones of the data points and comprising a set of adjacent faces creating a surface with each face being a geometric shape having the same predetermined number of vertices and having a boundary determined by ones of the inserted data points, the ones of the data points for each face comprising the vertices of that face and a boundary connection between any two vertices of a face comprising an edge of the face and each face being connected to another adjacent face in the mesh through a shared edge and the shared vertices creating that shared edge, the data point to be inserted being one of a subset of the plurality of data points that have not yet been inserted into the mesh, the method comprising the steps of: (a) identifying which one of the unmeshed data points lies farthest from the mesh by locating for each unmeshed data point the mesh face which is closest in distance to that data point and comparing that distance with the distances obtained for the other unmeshed points; (b) inserting the data point into the mesh by reorganizing the arrangement of vertices of the face that defines the mesh and including the data point for insertion in that rearrangement to create a new set of faces from those points, each new face having the predetermined number of vertices, and the vertices and edges of the new faces arranged to create a continuous surface with the other faces of the mesh; (c) checking the set of newly created faces to determine whether their construction meets a predetermined optimality criteria; and (d) rearranging the boundaries of the newly created faces when one of the newly created faces does not meet the predetermined optimality criteria.
 41. A method for increasing resolution of a mesh model of an object or surface, the mesh created from a plurality of data points comprising coordinates that describe the object or surface and further constructing the mesh using the data points, the method comprising the steps of: (a) identifying from the unmeshed data points the next point of detail to insert into the mesh by determining which unmeshed point lies farthest in distance from the mesh; and (b) connecting the data point for insertion into the mesh and follow a predetermined path using the mesh structure to organize the mesh according to a predetermined optimality criteria.
 42. The method of claim 41 comprising the further step of identifying the next data point for insertion by finding the data point which lies farthest from the mesh, inserting that point into the mesh, and reordering the unmeshed data points to find the next point to insert until the distance of all the remaining unmeshed data points falls below a predetermined tolerance value.
 43. A computer based method for checking optimality, based on Delaunayian principles, of a mesh model after data points have been inserted, the computer including a processor coupled to a memory, configured to accept as input a plurality of data points, with each data point being a coordinate describing the object or surface to be modeled, and the computer further configured to construct a mesh to model the object or surface, the method comprising the steps of: (a) organizing a data structure to describe the mesh faces such that each data point in the mesh is a vertex of at least one triangular face of the mesh, each face of the mesh has its vertices ordered sequentially to have first, second and third vertices with a boundary connection between any two adjacent vertices of a face comprising an edge of the face and any face being connected to another adjacent, neighboring face through a shared edge and the pair of shared vertices creating that shared edge, the neighbors of the face being ordered following the sequential order corresponding to the ordering of the face's vertices with a first neighbor face, second neighbor face and third neighbor face; (b) inserting a new data point into an existing face and alter the data structure such that the existing face is reorganized to create a set of three new faces, each having the new data point as one vertex and the remaining two vertices being vertices of the existing face, the vertices of the new faces being ordered in a sequence consistent with the existing face's vertices, where the new data point is the first ordered vertex in each of the three new faces, and the neighbors of the new faces being ordered following a predetermined sequential order corresponding to the ordering of the new face's vertices; (c) checking one of the new faces created by the insertion of the new data point for Delaunayian optimality, by creating a circumcircle from the vertices of the face, and checking the face's first neighbor for Delaunayian optimality; (d) reorienting the vertices of the first neighbor face in the data structure, if the combination does not pass Delaunayian optimality, so that the vertices of the first neighbor are ordered such that the first vertex is opposite the face being checked; (e) rearranging the shared edge between the face being checked and the first neighbor, if the combination does not pass Delaunayian optimality, the rearrangement occurring by redefining the vertices for the first neighbor face by setting the first vertex to be the first vertex of the face being checked, setting the second vertex to be the first neighbor's former first vertex and setting the third vertex to be the first neighbor's former second vertex and redefining the vertices of the face being checked to change its third vertex to be the former first vertex of the first neighbor; (f) redefining the neighbors of the rearranged faces in the data structure based on the new ordering of the vertices; and (g) rechecking the face previously being checked if it was rearranged, the checking on the face proceeding until it passes the Delaunayian optimality criteria.
 44. The method of claim 43 comprising the further step of proceeding after completing a Delaunayian optimality check on a face, to the first neighbor of the face and performing a Delaunayian optimality check on the first neighbor, the computer proceeding thereafter to each succeeding first neighbor face and performing a Delaunayian optimality check at each said face until it arrives at the first face checked.
 45. The method of claim 43 comprising the further step of projecting the 3D mesh model onto a 2D reference object creating a 2D triangulated mesh on the reference object that is representative of the original 3D mesh model, and performing the checking on the 2D projected mesh.
 46. The method of claim 43 comprising the further step of retaining the equation of the circumcircle for a particular face on a List with reference to a particular face and using that stored equation when that face is checked a second time.
 47. The method of claim 43 where the reorientation of the first neighbor's vertices is accomplished by assigning the values 0,1,2 to the first, second and third vertices and neighbors respectively, storing a variable#(k) equal to the neighbor value of the face being checked in the data structure of the first neighbor face, the first neighbor's vertices are redefined such that the vertex k value is assigned to the original vertex (3−k), the original vertex (3−k) value is assigned to the original vertex with value 0 , and the value 0 is assigned to the original vertex k, resulting in a reorientation of the first neighbor vertices such that the vertex assigned value 0 is the first vertex, the vertex assigned value 1 is the second vertex, and vertex assigned value 2 is the third vertex.
 48. A method to operate a computer to increase and decrease the resolution of a mesh model of an object or surface, the computer including a processor coupled to a memory, adapted to accept as input a plurality of data points comprising coordinates that describe the object or surface, and construct a mesh to model the surface or object, the method comprising the steps of: (a) storing information on a history list, identifying a sequential list of entries comprising the sequence of operations executed by the processor during a mesh construction, to generate a mesh model containing the complete set of data points describing the object or surface; (b) setting a data pointer to an initial location in the sequence of entries in the history list; (c) advancing through the entries of the history list and building a mesh model following the sequence of operations on the history list; and (d) moving the data pointer in reverse order through the sequence of entries in the history list to remove data points from the mesh model.
 49. A computer based method for ordering a plurality of data points to be inserted into a mesh model of an object or surface comprised of geometric faces, the computer comprising a processor to manipulate the order of the data points and a memory to store the order of the data points, each data point being a coordinate describing the object or surface to be modeled, the method comprising the steps of: (a) determining the mesh face which lies closest to each unmeshed data point; (b) determining the distance each data point lies from its associated face; and (c) determining based on the distances the data point that is farthest from the mesh.
 50. A computer based method for ordering a plurality of data points to be inserted into a mesh model of an object or surface, the computer comprising a processor and a memory, the mesh model comprising a set of connected faces, each face being a geometric shape with a predetermined number of vertices, with each face being connected to another adjacent, neighboring face through a shared edge of adjacent vertices, the method comprising the steps of: (a) locating the closest mesh face to each data point by drawing a line from the center point of a current face to the data point, and determining if a projection of that line intersects with the edge of the current face; (b) determining if no intersection exists that the data point is associated with the current face; (c) moving from the current face, if there is an intersection with an edge, to the face which shares the edge of intersection with the original face and perform the same check recursively until the closest mesh face is determined when no intersection exists; (d) determining the distance from each data point to its closest face; (e) ordering the data points based on the distances to locate the data point that is farthest from the mesh; and (f) re-executing the locate and distance dertemination procedures after each data point insertion. 